diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-06-19 17:44:09 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-06-19 17:44:09 +0000 |
commit | fbba4be5b162fdffe8e12e3b1e0fa11629436600 (patch) | |
tree | e55d63f341e5e06ac00a047aa605ae2fc35296b7 /hcid/server.c | |
parent | 7af081a7d55261ab6266c87ff007a3105a38692f (diff) |
More work on private D-Bus server
Diffstat (limited to 'hcid/server.c')
-rw-r--r-- | hcid/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hcid/server.c b/hcid/server.c index e055efff..57241909 100644 --- a/hcid/server.c +++ b/hcid/server.c @@ -33,6 +33,8 @@ static DBusHandlerResult message_handler(DBusConnection *conn, DBusMessage *msg, void *data) { + debug("Incoming message %p", conn); + return DBUS_HANDLER_RESULT_HANDLED; } @@ -55,6 +57,7 @@ static void handle_connection(DBusServer *server, DBusConnection *conn, void *da dbus_connection_ref(conn); //dbus_connection_setup_with_g_main(conn, NULL); + setup_dbus_with_main_loop(conn); } static DBusServer *server = NULL; @@ -85,6 +88,7 @@ void init_local_server(void) dbus_free(address); //dbus_server_setup_with_g_main(server, NULL); + setup_dbus_server_with_main_loop(server); dbus_server_set_new_connection_function(server, handle_connection, NULL, NULL); |