diff options
author | Dan Winship <danw@gnome.org> | 2014-11-16 16:13:06 -0500 |
---|---|---|
committer | Dan Winship <danw@redhat.com> | 2014-11-19 09:24:10 -0500 |
commit | 780d8bf2fe5ce6c2d391a87f99691e4d7db03104 (patch) | |
tree | 9054bde5f30374d94b1357541aed00c0c53f197f /libnm-core/nm-setting.h | |
parent | 2f81a8bcbe968381e66abf4758cc3e12ac8cb5a7 (diff) | |
download | NetworkManager-780d8bf2fe5ce6c2d391a87f99691e4d7db03104.tar.gz |
libnm: fix nm-setting-docs.xml property types
Add nm_setting_get_dbus_property_type(), and use this to get the
correct type for properties in nm-seting-docs.xml, in situations where
the D-Bus and GObject property types don't match.
In the case of enum/flags-valued properties, give both the enum name
and the underlying D-Bus type.
Diffstat (limited to 'libnm-core/nm-setting.h')
-rw-r--r-- | libnm-core/nm-setting.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm-core/nm-setting.h b/libnm-core/nm-setting.h index 887aef4a6b..3601fce30b 100644 --- a/libnm-core/nm-setting.h +++ b/libnm-core/nm-setting.h @@ -273,6 +273,10 @@ gboolean nm_setting_set_secret_flags (NMSetting *setting, NMSettingSecretFlags flags, GError **error); +/* Properties */ +const GVariantType *nm_setting_get_dbus_property_type (NMSetting *setting, + const char *property_name); + G_END_DECLS #endif /* __NM_SETTING_H__ */ |