summaryrefslogtreecommitdiffstats
path: root/audio/main.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-05-26 17:17:34 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-05-26 17:17:34 +0000
commitd2d76421ad539e2c6da87e4b4fd2a42493053f49 (patch)
treec85b45267649df4a22086fdeba6fd5a17c92782c /audio/main.c
parent0097d93ac82733bae644a0be3c6ad0eab6cff4db (diff)
Move unix socket functionality into unix.c
Diffstat (limited to 'audio/main.c')
-rw-r--r--audio/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/audio/main.c b/audio/main.c
index 5c44df9b..98dc1d4f 100644
--- a/audio/main.c
+++ b/audio/main.c
@@ -36,6 +36,7 @@
#include "dbus.h"
#include "logging.h"
+#include "unix.h"
#include "manager.h"
#include "headset.h"
@@ -73,6 +74,11 @@ int main(int argc, char *argv[])
exit(1);
}
+ if (unix_init() < 0) {
+ error("Unable to setup unix socket");
+ exit(1);
+ }
+
if (audio_init(conn) < 0) {
error("Audio init failed!");
exit(1);
@@ -92,6 +98,8 @@ int main(int argc, char *argv[])
headset_exit();
+ unix_exit();
+
dbus_connection_unref(conn);
g_main_loop_unref(main_loop);