summaryrefslogtreecommitdiffstats
path: root/daemon/main.c
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 /daemon/main.c
parent6bf91edf6cdb840c0f40572f1a20d381fd2cdc5e (diff)
Move D-Bus mainloop integration into libgdbus
Diffstat (limited to 'daemon/main.c')
-rw-r--r--daemon/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/main.c b/daemon/main.c
index 94eba19a..be731b14 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -37,6 +37,8 @@
#include <dbus/dbus.h>
+#include <gdbus.h>
+
#include "dbus-helper.h"
#include "dbus.h"
@@ -56,7 +58,8 @@ static DBusConnection *system_bus = NULL;
static int setup_dbus(void)
{
- system_bus = init_dbus("org.bluez", NULL, NULL);
+ system_bus = dbus_bus_system_setup_with_main_loop("org.bluez",
+ NULL, NULL);
if (!system_bus)
return -1;