MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / main

Function main

libsigrok4DSL/tests/test_main.cpp:50–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50int main()
51{
52 xlog_context *log_ctx = xlog_new2(0);
53
54 ds_log_level(XLOG_LEVEL_INFO);
55 ds_log_set_context(log_ctx);
56
57 xlog_add_receiver(log_ctx, print_log, 0);
58
59 sr_lib_init();
60
61 thread t1(ctrl);
62 t1.join();
63
64 sr_lib_exit();
65 qDebug()<<"exit.";
66
67 return 0;
68}

Callers

nothing calls this directly

Calls 4

xlog_new2Function · 0.85
ds_log_levelFunction · 0.85
ds_log_set_contextFunction · 0.85
xlog_add_receiverFunction · 0.85

Tested by

no test coverage detected