mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 09:30:31 +01:00
macros: split macro NM_GOBJECT_PROPERTIES_DEFINE() in two
Sometimes we don't need the _notify() helper which results in a unused-function warning.
This commit is contained in:
parent
8bace23beb
commit
4eb5ba8b02
1 changed files with 5 additions and 2 deletions
|
|
@ -271,13 +271,16 @@ _NM_IN_STRSET_streq (const char *x, const char *s)
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define NM_GOBJECT_PROPERTIES_DEFINE(obj_type, ...) \
|
||||
#define NM_GOBJECT_PROPERTIES_DEFINE_BASE(...) \
|
||||
typedef enum { \
|
||||
_PROPERTY_ENUMS_0, \
|
||||
__VA_ARGS__ \
|
||||
_PROPERTY_ENUMS_LAST, \
|
||||
} _PropertyEnums; \
|
||||
static GParamSpec *obj_properties[_PROPERTY_ENUMS_LAST] = { NULL, }; \
|
||||
static GParamSpec *obj_properties[_PROPERTY_ENUMS_LAST] = { NULL, }
|
||||
|
||||
#define NM_GOBJECT_PROPERTIES_DEFINE(obj_type, ...) \
|
||||
NM_GOBJECT_PROPERTIES_DEFINE_BASE (__VA_ARGS__); \
|
||||
static inline void \
|
||||
_notify (obj_type *obj, _PropertyEnums prop) \
|
||||
{ \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue