Changeset 4489 for pjproject/trunk/pjsip-apps/src/pjsua/main.c
- Timestamp:
- Apr 23, 2013 7:53:25 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/main.c
r4476 r4489 25 25 static pj_status_t receive_end_sig; 26 26 static pj_thread_t *sig_thread; 27 static app_cfg_t cfg;27 static pjsua_app_cfg_t cfg; 28 28 29 29 /* Called when CLI (re)started */ … … 33 33 } 34 34 35 pj_bool_ton_app_stopped(pj_bool_t restart, int argc, char** argv)35 void on_app_stopped(pj_bool_t restart, int argc, char** argv) 36 36 { 37 37 cfg.argc = argc; … … 39 39 40 40 running = restart; 41 return PJ_TRUE;42 41 } 43 42 … … 61 60 PJ_LOG(3,(THIS_FILE, "Ctrl-C detected, quitting..")); 62 61 receive_end_sig = PJ_TRUE; 63 app_destroy();62 pjsua_app_destroy(); 64 63 ExitProcess(1); 65 64 PJ_UNREACHED(return TRUE;) … … 105 104 106 105 while (running) { 107 status = app_init(&cfg);106 status = pjsua_app_init(&cfg); 108 107 if (status == PJ_SUCCESS) { 109 status = app_run(PJ_TRUE);108 status = pjsua_app_run(PJ_TRUE); 110 109 } else { 111 110 pj_perror(3, THIS_FILE, status, "Failed init"); … … 114 113 115 114 if (!receive_end_sig) { 116 app_destroy();115 pjsua_app_destroy(); 117 116 118 117 /* This is on purpose */ 119 app_destroy();118 pjsua_app_destroy(); 120 119 } else { 121 120 pj_thread_join(sig_thread);
Note: See TracChangeset
for help on using the changeset viewer.