Let plugins use connman_dbus_get_connection() function
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 20 Dec 2008 07:46:36 +0000 (08:46 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 20 Dec 2008 07:46:36 +0000 (08:46 +0100)
plugins/bluetooth.c
plugins/dhclient.c
plugins/polkit.c
plugins/wifi.c

index d7ae286..9a26a94 100644 (file)
@@ -466,7 +466,7 @@ static int bluetooth_init(void)
 {
        int err = -EIO;
 
-       connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
+       connection = connman_dbus_get_connection();
        if (connection == NULL)
                return -EIO;
 
index 61dafe4..2cb4930 100644 (file)
@@ -318,7 +318,7 @@ static int dhclient_init(void)
        gchar *filter;
        int err;
 
-       connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
+       connection = connman_dbus_get_connection();
 
        busname = dbus_bus_get_unique_name(connection);
        busname = CONNMAN_SERVICE;
index a2e15a9..1bf3f90 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <connman/plugin.h>
 #include <connman/security.h>
+#include <connman/dbus.h>
 #include <connman/log.h>
 
 #define ACTION "org.moblin.connman.modify"
@@ -124,7 +125,7 @@ static int polkit_init(void)
 {
        int err;
 
-       connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
+       connection = connman_dbus_get_connection();
        if (connection == NULL)
                return -EIO;
 
index f215352..dd769b5 100644 (file)
@@ -36,6 +36,7 @@
 #include <connman/plugin.h>
 #include <connman/driver.h>
 #include <connman/rtnl.h>
+#include <connman/dbus.h>
 #include <connman/log.h>
 
 #include "inet.h"
@@ -619,7 +620,7 @@ static int wifi_init(void)
 {
        int err;
 
-       connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
+       connection = connman_dbus_get_connection();
        if (connection == NULL)
                return -EIO;