| 48 | } |
| 49 | |
| 50 | int 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 | } |
nothing calls this directly
no test coverage detected