diff options
Diffstat (limited to 'Transceiver52M/device/ipc/ipc-driver-test.c')
-rw-r--r-- | Transceiver52M/device/ipc/ipc-driver-test.c | 8 |
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); |