diff options
author | Thomas Haller <thaller@redhat.com> | 2013-09-06 11:56:41 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2013-09-25 23:12:37 +0200 |
commit | db9b7e10aca5456ec4960b75617e032209b98bc1 (patch) | |
tree | 9c70cc450812700e1c4b32eaa2193e5275607df3 /libnm-glib/nm-ip4-config.h | |
parent | f0fccd99a55cecc4288ddba5c314b86579a27192 (diff) | |
download | NetworkManager-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-ip4-config.h')
-rw-r--r-- | libnm-glib/nm-ip4-config.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libnm-glib/nm-ip4-config.h b/libnm-glib/nm-ip4-config.h index b76fdf8b34..8d17693fe1 100644 --- a/libnm-glib/nm-ip4-config.h +++ b/libnm-glib/nm-ip4-config.h @@ -54,20 +54,24 @@ typedef struct { void (*_reserved6) (void); } NMIP4ConfigClass; +#define NM_IP4_CONFIG_GATEWAY "gateway" #define NM_IP4_CONFIG_ADDRESSES "addresses" +#define NM_IP4_CONFIG_ROUTES "routes" #define NM_IP4_CONFIG_NAMESERVERS "nameservers" #define NM_IP4_CONFIG_DOMAINS "domains" -#define NM_IP4_CONFIG_ROUTES "routes" +#define NM_IP4_CONFIG_SEARCHES "searches" #define NM_IP4_CONFIG_WINS_SERVERS "wins-servers" GType nm_ip4_config_get_type (void); GObject *nm_ip4_config_new (DBusGConnection *connection, const char *object_path); +const char * nm_ip4_config_get_gateway (NMIP4Config *config); const GSList * nm_ip4_config_get_addresses (NMIP4Config *config); +const GSList * nm_ip4_config_get_routes (NMIP4Config *config); const GArray * nm_ip4_config_get_nameservers (NMIP4Config *config); const GPtrArray *nm_ip4_config_get_domains (NMIP4Config *config); -const GSList * nm_ip4_config_get_routes (NMIP4Config *config); +const GPtrArray *nm_ip4_config_get_searches (NMIP4Config *config); const GArray * nm_ip4_config_get_wins_servers (NMIP4Config *config); G_END_DECLS |