aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/device/ipc/ipc-driver-test.c
diff options
context:
space:
mode:
authorEric <ewild@sysmocom.de>2020-04-19 23:53:00 +0200
committerEric <ewild@sysmocom.de>2020-04-20 00:02:50 +0200
commitac857587632392dfc6da5b9eec1f903cd1ce4971 (patch)
tree00d6f5c8c955bc9c3ec78242ff3fac917b796661 /Transceiver52M/device/ipc/ipc-driver-test.c
parenta1d2b1f8229a7953034ce5bf81682e55eb283617 (diff)
spawn the client as a thread
Diffstat (limited to 'Transceiver52M/device/ipc/ipc-driver-test.c')
-rw-r--r--Transceiver52M/device/ipc/ipc-driver-test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Transceiver52M/device/ipc/ipc-driver-test.c b/Transceiver52M/device/ipc/ipc-driver-test.c
index a342603..55a8a09 100644
--- a/Transceiver52M/device/ipc/ipc-driver-test.c
+++ b/Transceiver52M/device/ipc/ipc-driver-test.c
@@ -492,8 +492,14 @@ int ipc_sock_init(const char *path)
return 0;
}
-
+#ifdef IPCMAGIC
+extern "C" int osmo_ctx_init ( const char * id );
+int magicmain(int argc, char** argv) {
+ osmo_ctx_init("main");
+ osmo_select_init();
+#else
int main(int argc, char** argv) {
+#endif
tall_ctx = talloc_named_const(NULL, 0, "OsmoTRX");
msgb_talloc_ctx_init(tall_ctx, 0);
osmo_init_logging2(tall_ctx, &log_info);