mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-12 21:40:33 +01:00
libnm: allow _nm_setting_property_define_direct_strv() to be used as expression
This is so that the resulting index can be used for aliasing properties.
This commit is contained in:
parent
1bb73bd552
commit
8f9ed29e2c
1 changed files with 2 additions and 4 deletions
|
|
@ -877,8 +877,7 @@ _nm_properties_override(GArray *properties_override, const NMSettInfoProperty *p
|
|||
private_struct_type, \
|
||||
private_struct_field, \
|
||||
... /* extra NMSettInfoProperty fields */) \
|
||||
G_STMT_START \
|
||||
{ \
|
||||
({ \
|
||||
GParamSpec *_param_spec; \
|
||||
\
|
||||
G_STATIC_ASSERT(!NM_FLAGS_ANY((param_flags), ~(NM_SETTING_PARAM_FUZZY_IGNORE))); \
|
||||
|
|
@ -900,8 +899,7 @@ _nm_properties_override(GArray *properties_override, const NMSettInfoProperty *p
|
|||
private_struct_type, \
|
||||
private_struct_field), \
|
||||
__VA_ARGS__); \
|
||||
} \
|
||||
G_STMT_END
|
||||
})
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue