summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting-private.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-07-29 18:25:10 -0400
committerDan Winship <danw@gnome.org>2014-09-04 09:18:44 -0400
commit8faef95dae8a473edffd2e9289df7941dfeeba88 (patch)
tree1a6551568311cbb103e0bd69b678f388256ad7e1 /libnm-core/nm-setting-private.h
parentee3467e531afc031bd13f6c1195dddfd8f2253d4 (diff)
downloadNetworkManager-8faef95dae8a473edffd2e9289df7941dfeeba88.tar.gz
libnm-core: add property overrides to NMSettingClass
Add _nm_setting_class_override_property(), for modifying the mapping between a GObject property and its D-Bus serialization.
Diffstat (limited to 'libnm-core/nm-setting-private.h')
-rw-r--r--libnm-core/nm-setting-private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-private.h b/libnm-core/nm-setting-private.h
index 05a3ae3afe..97f1d7b3f4 100644
--- a/libnm-core/nm-setting-private.h
+++ b/libnm-core/nm-setting-private.h
@@ -133,6 +133,10 @@ typedef gboolean (*NMSettingPropertySetFunc) (NMSetting *setting,
const char *property,
const GValue *value,
GError **error);
+typedef gboolean (*NMSettingPropertyNotSetFunc) (NMSetting *setting,
+ GHashTable *connection_hash,
+ const char *property,
+ GError **error);
void _nm_setting_class_add_dbus_only_property (NMSettingClass *setting_class,
const char *property_name,
@@ -140,4 +144,11 @@ void _nm_setting_class_add_dbus_only_property (NMSettingClass *setting_class,
NMSettingPropertyGetFunc get_func,
NMSettingPropertySetFunc set_func);
+void _nm_setting_class_override_property (NMSettingClass *setting_class,
+ const char *property_name,
+ GType dbus_type,
+ NMSettingPropertyGetFunc get_func,
+ NMSettingPropertySetFunc set_func,
+ NMSettingPropertyNotSetFunc not_set_func);
+
#endif /* NM_SETTING_PRIVATE_H */