diff options
Diffstat (limited to 'libnm-core/nm-setting-ip6-config.c')
-rw-r--r-- | libnm-core/nm-setting-ip6-config.c | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/libnm-core/nm-setting-ip6-config.c b/libnm-core/nm-setting-ip6-config.c index d6c085ac8c..f9b447a68b 100644 --- a/libnm-core/nm-setting-ip6-config.c +++ b/libnm-core/nm-setting-ip6-config.c @@ -313,19 +313,18 @@ ip6_dns_from_dbus (GVariant *dbus_value, } static GVariant * -ip6_addresses_get (NMSetting *setting, - const char *property) +ip6_addresses_get (const NMSettInfoSetting *sett_info, + guint property_idx, + NMConnection *connection, + NMSetting *setting, + NMConnectionSerializationFlags flags) { - GPtrArray *addrs; + gs_unref_ptrarray GPtrArray *addrs = NULL; const char *gateway; - GVariant *ret; - g_object_get (setting, property, &addrs, NULL); + g_object_get (setting, NM_SETTING_IP_CONFIG_ADDRESSES, &addrs, NULL); gateway = nm_setting_ip_config_get_gateway (NM_SETTING_IP_CONFIG (setting)); - ret = nm_utils_ip6_addresses_to_variant (addrs, gateway); - g_ptr_array_unref (addrs); - - return ret; + return nm_utils_ip6_addresses_to_variant (addrs, gateway); } static gboolean @@ -394,17 +393,16 @@ ip6_address_data_set (NMSetting *setting, } static GVariant * -ip6_routes_get (NMSetting *setting, - const char *property) +ip6_routes_get (const NMSettInfoSetting *sett_info, + guint property_idx, + NMConnection *connection, + NMSetting *setting, + NMConnectionSerializationFlags flags) { - GPtrArray *routes; - GVariant *ret; - - g_object_get (setting, property, &routes, NULL); - ret = nm_utils_ip6_routes_to_variant (routes); - g_ptr_array_unref (routes); + gs_unref_ptrarray GPtrArray *routes = NULL; - return ret; + g_object_get (setting, NM_SETTING_IP_CONFIG_ROUTES, &routes, NULL); + return nm_utils_ip6_routes_to_variant (routes); } static gboolean |