diff options
author | Thomas Haller <thaller@redhat.com> | 2019-04-24 17:41:32 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-04-25 11:38:56 +0200 |
commit | f895fa4f28b1f317ea3dabbc2dcf9441fe24cc57 (patch) | |
tree | 616d4bd77b74049b2cdba32e7cb74fa0193f46c3 /libnm-core/nm-setting-sriov.c | |
parent | 39bd2e1f1542a8bf30d11dd8444685f596d86a87 (diff) | |
download | NetworkManager-th/libnm-setting-cleanup.tar.gz |
libnm: unify property-to-dbus handling of NMSettingth/libnm-setting-cleanup
Merge the function pointer get_func() into to_dbus_fcn().
Previously, get_func() as handled separately from to_dbus_fnc()
(formerly synth_func()). The notion was that synth-func would syntetize
properties that are D-Bus only. But that distinction does not seem
very helpful to me.
Instaed, we want to convert a property to D-Bus. Period. The
implementation should be handled uniformly. Hence, now that is
all done by property_to_dbus().
Note that property_to_dbus() is also called as default implementation
for compare-property. At least, for properties that are backed by a
GObject property.
Diffstat (limited to 'libnm-core/nm-setting-sriov.c')
-rw-r--r-- | libnm-core/nm-setting-sriov.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libnm-core/nm-setting-sriov.c b/libnm-core/nm-setting-sriov.c index b63a2a9924..a5d672382c 100644 --- a/libnm-core/nm-setting-sriov.c +++ b/libnm-core/nm-setting-sriov.c @@ -905,7 +905,11 @@ _nm_setting_sriov_sort_vfs (NMSettingSriov *setting) /*****************************************************************************/ static GVariant * -vfs_to_dbus (NMSetting *setting, const char *property) +vfs_to_dbus (const NMSettInfoSetting *sett_info, + guint property_idx, + NMConnection *connection, + NMSetting *setting, + NMConnectionSerializationFlags flags) { gs_unref_ptrarray GPtrArray *vfs = NULL; GVariantBuilder builder; |