From: Marcel Holtmann Date: Sat, 20 Dec 2008 07:46:36 +0000 (+0100) Subject: Let plugins use connman_dbus_get_connection() function X-Git-Tag: 2.0_alpha~4388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60fe07bb4f740459d0ee42fd207085634354b9d6;p=framework%2Fconnectivity%2Fconnman.git Let plugins use connman_dbus_get_connection() function --- diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index d7ae286..9a26a94 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -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; diff --git a/plugins/dhclient.c b/plugins/dhclient.c index 61dafe4..2cb4930 100644 --- a/plugins/dhclient.c +++ b/plugins/dhclient.c @@ -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; diff --git a/plugins/polkit.c b/plugins/polkit.c index a2e15a9..1bf3f90 100644 --- a/plugins/polkit.c +++ b/plugins/polkit.c @@ -30,6 +30,7 @@ #include #include +#include #include #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; diff --git a/plugins/wifi.c b/plugins/wifi.c index f215352..dd769b5 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #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;