diff options
author | Thomas Haller <thaller@redhat.com> | 2019-09-22 14:30:41 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-09-30 08:23:19 +0200 |
commit | 0129954203fcd7b4c0837d76a94aa63956b06e31 (patch) | |
tree | 0005c8ba9aa3dfdc69905b87c1fdef2e4ef661f2 /libnm-core/nm-setting-private.h | |
parent | d534b6d07a235199af3044a6f156d2965dc0ddc0 (diff) | |
download | NetworkManager-0129954203fcd7b4c0837d76a94aa63956b06e31.tar.gz |
libnm: replace _properties_override_add_dbus_only() with _properties_override_add_virt()
We have too many _properties_override_add*() variants. They basically are all the
same. Drop _properties_override_add_dbus_only() and use _properties_override_add_virt()
instead.
Also, I am always confused by the term "synth". We shouldn't treat
non-GObject-based properties as somehow odd that need to be synthesized.
Diffstat (limited to 'libnm-core/nm-setting-private.h')
-rw-r--r-- | libnm-core/nm-setting-private.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/libnm-core/nm-setting-private.h b/libnm-core/nm-setting-private.h index 747818df9c..e9ba4b8ce5 100644 --- a/libnm-core/nm-setting-private.h +++ b/libnm-core/nm-setting-private.h @@ -172,40 +172,6 @@ void _properties_override_add_struct (GArray *properties_override, _properties_override_add ((properties_override), .name = (p_name), .property_type = (p_property_type)) /** - * _properties_override_add_dbus_only: - * @properties_override: an array collecting the overrides - * @p_property_name: the name of the property to override - * @p_dbus_type: the type of the property (in its D-Bus representation) - * @p_to_dbus_fcn: (allow-none): function to call to synthesize a value for the property - * @p_from_dbus_fcn: (allow-none): function to call to set the value of the property - * - * Registers a property named @p_property_name, which will be used in the D-Bus - * serialization of objects of this setting type, but which does not correspond to - * a #GObject property. - * - * When serializing a setting to D-Bus, @p_to_dbus_fcn will be called to synthesize - * a value for the property. (If it returns %NULL, no value will be added to the - * serialization. If @p_to_dbus_fcn is %NULL, the property will always be omitted - * in the serialization.) - * - * When deserializing a D-Bus representation into a setting, if @p_property_name - * is present, then @p_from_dbus_fcn will be called to set it. (If @p_from_dbus_fcn is %NULL - * then the property will be ignored when deserializing.) - */ -#define _properties_override_add_dbus_only(properties_override, \ - p_property_name, \ - p_dbus_type, \ - p_to_dbus_fcn, \ - p_from_dbus_fcn) \ - _properties_override_add ((properties_override), \ - .name = (p_property_name), \ - .property_type = NM_SETT_INFO_PROPERT_TYPE ( \ - .dbus_type = (p_dbus_type), \ - .to_dbus_fcn = (p_to_dbus_fcn), \ - .from_dbus_fcn = (p_from_dbus_fcn), \ - )) - -/** * _properties_override_add_override: * @properties_override: an array collecting the overrides * @p_param_spec: the name of the property to override |