summaryrefslogtreecommitdiff
path: root/libnm-core/nm-core-internal.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-01-21 08:10:14 +0100
committerThomas Haller <thaller@redhat.com>2019-02-04 20:15:20 +0100
commit52368678d67d7d11ef2c552b6ef1865ba012c0e7 (patch)
treeb6516b9a4aff8ca4c34ce3eb2c25c9461ac3f6be /libnm-core/nm-core-internal.h
parent879820ccd54be34deda42791f45ab2b284281425 (diff)
downloadNetworkManager-52368678d67d7d11ef2c552b6ef1865ba012c0e7.tar.gz
libnm: extend nm_setting_enumerate_values() to support non-GObject base properties
While nm_setting_enumerate_values() should not be used anymore, still extend it to make it workable also for properties that are not based on GObject properties.
Diffstat (limited to 'libnm-core/nm-core-internal.h')
-rw-r--r--libnm-core/nm-core-internal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libnm-core/nm-core-internal.h b/libnm-core/nm-core-internal.h
index b3d664dcea..9385d505e7 100644
--- a/libnm-core/nm-core-internal.h
+++ b/libnm-core/nm-core-internal.h
@@ -614,7 +614,8 @@ gboolean _nm_setting_sriov_sort_vfs (NMSettingSriov *setting);
/*****************************************************************************/
-typedef struct _NMSettInfoSetting NMSettInfoSetting;
+typedef struct _NMSettInfoSetting NMSettInfoSetting;
+typedef struct _NMSettInfoProperty NMSettInfoProperty;
typedef GVariant *(*NMSettingPropertyGetFunc) (NMSetting *setting,
const char *property);
@@ -638,7 +639,7 @@ typedef GVariant *(*NMSettingPropertyTransformToFunc) (const GValue *from);
typedef void (*NMSettingPropertyTransformFromFunc) (GVariant *from,
GValue *to);
-typedef struct {
+struct _NMSettInfoProperty {
const char *name;
GParamSpec *param_spec;
const GVariantType *dbus_type;
@@ -650,7 +651,7 @@ typedef struct {
NMSettingPropertyTransformToFunc to_dbus;
NMSettingPropertyTransformFromFunc from_dbus;
-} NMSettInfoProperty;
+};
typedef struct {
const GVariantType *(*get_variant_type) (const struct _NMSettInfoSetting *sett_info,