summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-ip6-config.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-09-06 11:56:41 +0200
committerThomas Haller <thaller@redhat.com>2013-09-25 23:12:37 +0200
commitdb9b7e10aca5456ec4960b75617e032209b98bc1 (patch)
tree9c70cc450812700e1c4b32eaa2193e5275607df3 /libnm-glib/nm-ip6-config.h
parentf0fccd99a55cecc4288ddba5c314b86579a27192 (diff)
downloadNetworkManager-db9b7e10aca5456ec4960b75617e032209b98bc1.tar.gz
core: update existing IP[46]Config of device instead of replacing it (bgo #707617)
When the IP[46]Config changes, a new configuration gets assembled. Before, whenever the new configuration was different than the current one, the IP[46]Config of the device was completely replaced. This also meant, that the old dbus IP[46]Config object was removed and the new one was exported. Now instead of recreating a new configuration, it updates the existing (already exported) configuration in-place. Also, add new gobject properties 'gateway' and 'searches' to the config class, they will be exported over dbus. Also, whenever any of the exported properties changes, make sure that a notify signal gets emitted. https://bugzilla.gnome.org/show_bug.cgi?id=707617 Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'libnm-glib/nm-ip6-config.h')
-rw-r--r--libnm-glib/nm-ip6-config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libnm-glib/nm-ip6-config.h b/libnm-glib/nm-ip6-config.h
index 9692c65585..a71d74b856 100644
--- a/libnm-glib/nm-ip6-config.h
+++ b/libnm-glib/nm-ip6-config.h
@@ -54,19 +54,23 @@ typedef struct {
void (*_reserved6) (void);
} NMIP6ConfigClass;
+#define NM_IP6_CONFIG_GATEWAY "gateway"
#define NM_IP6_CONFIG_ADDRESSES "addresses"
+#define NM_IP6_CONFIG_ROUTES "routes"
#define NM_IP6_CONFIG_NAMESERVERS "nameservers"
#define NM_IP6_CONFIG_DOMAINS "domains"
-#define NM_IP6_CONFIG_ROUTES "routes"
+#define NM_IP6_CONFIG_SEARCHES "searches"
GType nm_ip6_config_get_type (void);
GObject *nm_ip6_config_new (DBusGConnection *connection, const char *object_path);
+const char * nm_ip6_config_get_gateway (NMIP6Config *config);
const GSList * nm_ip6_config_get_addresses (NMIP6Config *config);
+const GSList * nm_ip6_config_get_routes (NMIP6Config *config);
const GSList * nm_ip6_config_get_nameservers (NMIP6Config *config);
const GPtrArray *nm_ip6_config_get_domains (NMIP6Config *config);
-const GSList * nm_ip6_config_get_routes (NMIP6Config *config);
+const GPtrArray *nm_ip6_config_get_searches (NMIP6Config *config);
G_END_DECLS