add SPA_SENTINEL

This commit is contained in:
Wim Taymans 2019-07-09 21:13:26 +02:00
parent c7d7058896
commit 7f885b6db4
2 changed files with 4 additions and 2 deletions

View file

@ -153,12 +153,14 @@ struct spa_param_info {
#define SPA_PRINTF_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1)))
#define SPA_ALIGNED(align) __attribute__((aligned(align)))
#define SPA_DEPRECATED __attribute__ ((deprecated))
#define SPA_EXPORT __attribute__ ((visibility("default")))
#define SPA_EXPORT __attribute__((visibility("default")))
#define SPA_SENTINEL __attribute__((__sentinel__))
#else
#define SPA_PRINTF_FUNC(fmt, arg1)
#define SPA_ALIGNED(align)
#define SPA_DEPRECATED
#define SPA_EXPORT
#define SPA_SENTINEL
#endif
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L

View file

@ -46,7 +46,7 @@ struct pw_properties {
};
struct pw_properties *
pw_properties_new(const char *key, ...);
pw_properties_new(const char *key, ...) SPA_SENTINEL;
struct pw_properties *
pw_properties_new_dict(const struct spa_dict *dict);