- Timestamp:
- Nov 23, 2012 10:30:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/cli/pjlib-util/include/pjlib-util/cli_console.h
r3231 r4299 51 51 int log_level; 52 52 53 /** 54 * Specify text message as a prompt string to user. 55 * 56 * Default: empty 57 */ 58 pj_str_t prompt_str; 59 53 60 } pj_cli_console_cfg; 54 61 … … 83 90 84 91 /** 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. 92 93 * 93 94 * @param sess The CLI session. … … 97 98 * @return PJ_SUCCESS if an input was read 98 99 */ 99 PJ_DECL(pj_status_t) pj_cli_console_readline(pj_cli_sess *sess, 100 char *buf, 101 unsigned maxlen); 100 PJ_DECL(pj_status_t) pj_cli_console_process(pj_cli_sess *sess); 102 101 103 102 /**
Note: See TracChangeset
for help on using the changeset viewer.