summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-08 19:12:44 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-08 19:12:44 +0000
commit33191e6275ab82aa4161cdf75b45597e4d1568ec (patch)
treed20e3027a12c57aee6ef221ff8cc347f4e2f9989 /hcid
parent6bf91edf6cdb840c0f40572f1a20d381fd2cdc5e (diff)
Move D-Bus mainloop integration into libgdbus
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c
index 20453c82..8a8a721a 100644
--- a/hcid/dbus-common.c
+++ b/hcid/dbus-common.c
@@ -49,6 +49,8 @@
#include <dbus/dbus.h>
+#include <gdbus.h>
+
#include "hcid.h"
#include "dbus.h"
#include "dbus-helper.h"
@@ -336,7 +338,8 @@ int hcid_dbus_init(void)
{
DBusConnection *conn;
- conn = init_dbus(BLUEZ_NAME, disconnect_callback, NULL);
+ conn = dbus_bus_system_setup_with_main_loop(BLUEZ_NAME,
+ disconnect_callback, NULL);
if (!conn)
return -1;