summaryrefslogtreecommitdiff
path: root/emulator/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-11-27 10:26:23 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-11-27 10:26:23 +0100
commitb823e9e96076902b811975264e57a5d218ac8fa8 (patch)
tree54e0aedc4d10484d9def62e6792718cfdc2aeb4c /emulator/main.c
parent58f8c75c0b094cf9106efc271f4fafd282e6705c (diff)
downloadbluez-b823e9e96076902b811975264e57a5d218ac8fa8.tar.gz
emulator: Add handling for monitor server instance
Diffstat (limited to 'emulator/main.c')
-rw-r--r--emulator/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/emulator/main.c b/emulator/main.c
index 6a30c8c61..807c66396 100644
--- a/emulator/main.c
+++ b/emulator/main.c
@@ -65,6 +65,7 @@ int main(int argc, char *argv[])
struct server *server1;
struct server *server2;
struct server *server3;
+ struct server *server4;
sigset_t mask;
mainloop_init();
@@ -112,5 +113,9 @@ int main(int argc, char *argv[])
if (!server3)
fprintf(stderr, "Failed to open LE server channel\n");
+ server4 = server_open_unix(SERVER_TYPE_MONITOR, "/tmp/bt-server-mon");
+ if (!server4)
+ fprintf(stderr, "Failed to open monitor server channel\n");
+
return mainloop_run();
}