Ignore:
Timestamp:
Nov 23, 2012 10:30:55 AM (11 years ago)
Author:
riza
Message:

Re #1098: Additional implementation to command parsing, telnet front end, console front end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/cli/pjlib-util/include/pjlib-util/cli_console.h

    r3231 r4299  
    5151    int log_level; 
    5252 
     53    /** 
     54     * Specify text message as a prompt string to user. 
     55     * 
     56     * Default: empty 
     57     */ 
     58    pj_str_t prompt_str; 
     59 
    5360} pj_cli_console_cfg; 
    5461 
     
    8390 
    8491/** 
    85  * Retrieve a cmdline from console stdin. Application should use this 
    86  * instead of the standard gets() or fgets(), since unlike these functions, 
    87  * this is able to end the blocking when pj_cli_quit() is called by other 
    88  * session. This function requires a thread support. 
    89  * 
    90  * Note that this function would also remove the trailing newlines from the 
    91  * input, if any. 
     92 * Retrieve a cmdline from console stdin and process the input accordingly. 
    9293 * 
    9394 * @param sess          The CLI session. 
     
    9798 * @return              PJ_SUCCESS if an input was read 
    9899 */ 
    99 PJ_DECL(pj_status_t) pj_cli_console_readline(pj_cli_sess *sess, 
    100                                              char *buf, 
    101                                              unsigned maxlen); 
     100PJ_DECL(pj_status_t) pj_cli_console_process(pj_cli_sess *sess); 
    102101 
    103102/** 
Note: See TracChangeset for help on using the changeset viewer.