summaryrefslogtreecommitdiffstats
path: root/daemon/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-13 23:32:22 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-13 23:32:22 +0000
commitf69ca2b89cb0e3913c7da700031c4290a20d2d01 (patch)
tree4c500f66f33f7041b0915e31a2b2c9a08f2394b1 /daemon/main.c
parentc1b89827706feed27d270ac097647aa1f31dec4b (diff)
Use SDP server library
Diffstat (limited to 'daemon/main.c')
-rw-r--r--daemon/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index 2c13b6a5..beec6482 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -163,8 +163,16 @@ int main(int argc, char *argv[])
exit(1);
}
+ if (start_sdp_server(0, SDP_SERVER_COMPAT) < 0) {
+ dbus_connection_unref(system_bus);
+ g_main_loop_unref(main_loop);
+ exit(1);
+ }
+
g_main_loop_run(main_loop);
+ stop_sdp_server();
+
dbus_connection_unref(system_bus);
notify_remove(CONFIGDIR);