diff options
author | Thomas Haller <thaller@redhat.com> | 2013-11-28 11:37:40 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2013-12-12 21:47:13 +0100 |
commit | 9d319e6da0cd8ccb58c56603680cdd94d88bd176 (patch) | |
tree | 3220a89be8d3d3c539c77e8f93948536d1d85f42 /libnm-util/nm-setting-ip6-config.c | |
parent | 844b89d497b287febe49f86b0aa65026466c26e9 (diff) | |
download | NetworkManager-9d319e6da0cd8ccb58c56603680cdd94d88bd176.tar.gz |
libnm-util: refactor NMSetting name and register_settings
- refactor register_settings to allow lookup by GType and
add the settings name to SettingInfo.
- setting NM_SETTING_NAME is deprecated and should not be set anymore.
Indeed it has always be a bug, to reset the name to a different value.
The only valid place to set the name was in the _init() function of
the derived class itself.
This is now no longer needed/possible. Instead the name get's
detected based on the registered setting types. This makes use of
the registered metadata that is available anyway since every
usable setting has to register itself.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'libnm-util/nm-setting-ip6-config.c')
-rw-r--r-- | libnm-util/nm-setting-ip6-config.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libnm-util/nm-setting-ip6-config.c b/libnm-util/nm-setting-ip6-config.c index c4ec4d373e..41f4a0f7e5 100644 --- a/libnm-util/nm-setting-ip6-config.c +++ b/libnm-util/nm-setting-ip6-config.c @@ -759,7 +759,6 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) static void nm_setting_ip6_config_init (NMSettingIP6Config *setting) { - g_object_set (setting, NM_SETTING_NAME, NM_SETTING_IP6_CONFIG_SETTING_NAME, NULL); } static void |