Changeset 4464


Ignore:
Timestamp:
Apr 12, 2013 8:05:12 AM (6 years ago)
Author:
ming
Message:

Re #1655: pjsua app CLI for iOS

Location:
pjproject/trunk/pjsip-apps/src/pjsua
Files:
19 added
1 edited

Legend:

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

    r4461 r4464  
    1919 */ 
    2020#include "pjsua_common.h" 
    21 #include "gui.h" 
     21 
     22#define USE_GUI 
    2223 
    2324#define THIS_FILE       "pjsua_app.c" 
     
    7980 * Configuration manipulation 
    8081 */ 
    81  
    82 #if (defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
    83     PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0) || \ 
    84     defined(__IPHONE_4_0) 
    85 void keepAliveFunction(int timeout) 
    86 { 
    87     int i; 
    88     for (i=0; i<(int)pjsua_acc_get_count(); ++i) { 
    89         if (!pjsua_acc_is_valid(i)) 
    90             continue; 
    91  
    92         if (app_config.acc_cfg[i].reg_timeout < timeout) { 
    93             pjsua_acc_get_config(i, &app_config.acc_cfg[i]); 
    94             app_config.acc_cfg[i].reg_timeout = timeout; 
    95             pjsua_acc_modify(i, &app_config.acc_cfg[i]); 
    96         } else { 
    97             pjsua_acc_set_registration(i, PJ_TRUE); 
    98         } 
    99     } 
    100 } 
    101 #endif 
    10282 
    10383/***************************************************************************** 
     
    20362016} 
    20372017 
     2018pj_cli_telnet_on_started on_started_cb = &cli_telnet_started; 
     2019pj_cli_on_quit on_quit_cb = &cli_on_quit; 
     2020pj_cli_on_destroy on_destroy_cb = &cli_on_destroy; 
     2021pj_cli_on_restart_pjsua on_restart_pjsua_cb = &cli_on_restart_pjsua; 
     2022 
    20382023/** ======================= **/ 
    20392024 
     
    20512036    do { 
    20522037        if (app_restart) {           
    2053             status = app_init(cli_telnet_started, cli_on_quit, 
    2054                               cli_on_destroy, cli_on_restart_pjsua); 
     2038            status = app_init(on_started_cb, on_quit_cb, 
     2039                              on_destroy_cb, on_restart_pjsua_cb); 
    20552040            if (status != PJ_SUCCESS) 
    20562041                return 1;            
Note: See TracChangeset for help on using the changeset viewer.