Changeset 5542


Ignore:
Timestamp:
Jan 23, 2017 6:15:14 AM (8 years ago)
Author:
ming
Message:

Re #1945 (misc): On iOS, print log in debugging console output when using ipjsua with cli.

Location:
pjproject/trunk/pjsip-apps/src/pjsua
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m

    r5166 r5542  
    4040static char           **restartArgv; 
    4141static int              restartArgc; 
     42 
     43void displayLog(const char *msg, int len) 
     44{ 
     45    NSLog(@"%.*s", len, msg); 
     46} 
    4247 
    4348static void displayMsg(const char *msg) 
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c

    r5535 r5542  
    152152static pj_cli_front_end    *telnet_front_end = NULL; 
    153153 
     154#ifdef USE_GUI 
     155void displayLog(const char *msg, int len); 
     156#endif 
     157 
    154158/** Forward declaration **/ 
    155159pj_status_t cli_setup_command(pj_cli_t *cli); 
     
    171175    if (cli) 
    172176        pj_cli_write_log(cli, level, buffer, len); 
     177#ifdef USE_GUI 
     178    displayLog(buffer, len); 
     179#endif 
    173180} 
    174181 
Note: See TracChangeset for help on using the changeset viewer.