mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 12:20:36 +01:00
libnm: cleanup 'NML_DBUS_META_IFACE_INIT_PROP' macro
This commit is contained in:
parent
219ee9a9e8
commit
cbb45aaf90
1 changed files with 10 additions and 4 deletions
|
|
@ -544,7 +544,7 @@ struct _NMLDBusMetaIface {
|
|||
|
||||
#define NML_DBUS_META_IFACE_DBUS_PROPERTIES(...) \
|
||||
.dbus_properties = ((const NMLDBusMetaProperty []) { __VA_ARGS__ }), \
|
||||
.n_dbus_properties = sizeof ((const NMLDBusMetaProperty []) { __VA_ARGS__ }) / sizeof (NMLDBusMetaProperty) \
|
||||
.n_dbus_properties = (sizeof ((const NMLDBusMetaProperty []) { __VA_ARGS__ }) / sizeof (NMLDBusMetaProperty))
|
||||
|
||||
#define NML_DBUS_META_IFACE_INIT(v_dbus_iface_name, \
|
||||
v_get_type_fcn, \
|
||||
|
|
@ -557,9 +557,15 @@ struct _NMLDBusMetaIface {
|
|||
##__VA_ARGS__ \
|
||||
}
|
||||
|
||||
#define NML_DBUS_META_IFACE_INIT_PROP(...) \
|
||||
NML_DBUS_META_IFACE_INIT (__VA_ARGS__ \
|
||||
NML_DBUS_META_IFACE_OBJ_PROPERTIES ())
|
||||
#define NML_DBUS_META_IFACE_INIT_PROP(v_dbus_iface_name, \
|
||||
v_get_type_fcn, \
|
||||
v_interface_prio, \
|
||||
...) \
|
||||
NML_DBUS_META_IFACE_INIT (v_dbus_iface_name, \
|
||||
v_get_type_fcn, \
|
||||
v_interface_prio, \
|
||||
NML_DBUS_META_IFACE_OBJ_PROPERTIES (), \
|
||||
##__VA_ARGS__)
|
||||
|
||||
extern const NMLDBusMetaIface *const _nml_dbus_meta_ifaces[44];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue