diff options
author | Dan Winship <danw@redhat.com> | 2015-04-13 10:28:17 -0400 |
---|---|---|
committer | Dan Winship <danw@redhat.com> | 2015-07-24 13:25:47 -0400 |
commit | dd0e19895532504e6de615d18a761457ec685b58 (patch) | |
tree | 5df8230a545e0bd0fe6be3835962ddcdff00a088 /src/nm-dbus-manager.c | |
parent | f2174b623f814115207331f4ad0d3e944d1f323b (diff) | |
download | NetworkManager-dd0e19895532504e6de615d18a761457ec685b58.tar.gz |
include: add nm-dbus-compat.h
Add a file containing the defines like DBUS_INTERFACE_DBUS from
dbus-shared.h, and use it from the gdbus-using files.
Also, convert a bunch of other places that were previously hardcoding
the string values to use the defines instead, and fix the ifcfg-rh
plugin to properly namespace its own D-Bus-related defines.
Diffstat (limited to 'src/nm-dbus-manager.c')
-rw-r--r-- | src/nm-dbus-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm-dbus-manager.c b/src/nm-dbus-manager.c index b8b5325671..4f3ea07223 100644 --- a/src/nm-dbus-manager.c +++ b/src/nm-dbus-manager.c @@ -769,9 +769,9 @@ nm_dbus_manager_init_bus (NMDBusManager *self) dbus_connection_set_exit_on_disconnect (priv->connection, FALSE); priv->proxy = dbus_g_proxy_new_for_name (priv->g_connection, - "org.freedesktop.DBus", - "/org/freedesktop/DBus", - "org.freedesktop.DBus"); + DBUS_SERVICE_DBUS, + DBUS_PATH_DBUS, + DBUS_INTERFACE_DBUS); priv->proxy_destroy_id = g_signal_connect (priv->proxy, "destroy", G_CALLBACK (destroy_cb), self); |