diff options
author | Dan Williams <dcbw@redhat.com> | 2012-10-04 16:42:03 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2013-04-08 10:55:37 -0500 |
commit | 3c7f267fb97096054eafe98ad16691ac60a82b6c (patch) | |
tree | a1623741763e9583e7fbb71f55e116183b5852e1 /src/nm-dhcp6-config.c | |
parent | 1fec50cc1eba97fb90700d72e6db7a7603bf82bc (diff) | |
download | NetworkManager-3c7f267fb97096054eafe98ad16691ac60a82b6c.tar.gz |
core: use wrappers for DBus object registration/unregistration
When providing a service on the bus daemon and a private connection,
we'll need to track objects so we can register them with the
private connection too. Thus all registration/unregistration
calls have to go through the NMDBusManager, not straight to
dbus-glib.
Diffstat (limited to 'src/nm-dhcp6-config.c')
-rw-r--r-- | src/nm-dhcp6-config.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nm-dhcp6-config.c b/src/nm-dhcp6-config.c index 885e5f840a..4e2ab9e963 100644 --- a/src/nm-dhcp6-config.c +++ b/src/nm-dhcp6-config.c @@ -140,13 +140,11 @@ nm_dhcp6_config_init (NMDHCP6Config *self) { NMDHCP6ConfigPrivate *priv = NM_DHCP6_CONFIG_GET_PRIVATE (self); static guint32 counter = 0; - DBusGConnection *connection; NMDBusManager *dbus_mgr; dbus_mgr = nm_dbus_manager_get (); - connection = nm_dbus_manager_get_connection (dbus_mgr); priv->dbus_path = g_strdup_printf (NM_DBUS_PATH "/DHCP6Config/%d", counter++); - dbus_g_connection_register_g_object (connection, priv->dbus_path, G_OBJECT (self)); + nm_dbus_manager_register_object (dbus_mgr, priv->dbus_path, self); g_object_unref (dbus_mgr); priv->options = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, nm_gvalue_destroy); |