Ignore:
Timestamp:
Apr 23, 2013 7:53:25 AM (11 years ago)
Author:
riza
Message:

Re #1643: Modification to avoid namespace conflict with pjsua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/main.c

    r4476 r4489  
    2525static pj_status_t          receive_end_sig; 
    2626static pj_thread_t          *sig_thread; 
    27 static app_cfg_t            cfg; 
     27static pjsua_app_cfg_t      cfg; 
    2828 
    2929/* Called when CLI (re)started */ 
     
    3333} 
    3434 
    35 pj_bool_t on_app_stopped(pj_bool_t restart, int argc, char** argv) 
     35void on_app_stopped(pj_bool_t restart, int argc, char** argv) 
    3636{ 
    3737    cfg.argc = argc; 
     
    3939 
    4040    running = restart; 
    41     return PJ_TRUE; 
    4241} 
    4342 
     
    6160            PJ_LOG(3,(THIS_FILE, "Ctrl-C detected, quitting..")); 
    6261            receive_end_sig = PJ_TRUE; 
    63             app_destroy();           
     62            pjsua_app_destroy();             
    6463            ExitProcess(1); 
    6564            PJ_UNREACHED(return TRUE;) 
     
    105104 
    106105    while (running) {         
    107         status = app_init(&cfg); 
     106        status = pjsua_app_init(&cfg); 
    108107        if (status == PJ_SUCCESS) { 
    109             status = app_run(PJ_TRUE); 
     108            status = pjsua_app_run(PJ_TRUE); 
    110109        } else { 
    111110            pj_perror(3, THIS_FILE, status, "Failed init"); 
     
    114113 
    115114        if (!receive_end_sig) { 
    116             app_destroy(); 
     115            pjsua_app_destroy(); 
    117116 
    118117            /* This is on purpose */ 
    119             app_destroy(); 
     118            pjsua_app_destroy(); 
    120119        } else { 
    121120            pj_thread_join(sig_thread); 
Note: See TracChangeset for help on using the changeset viewer.