version 1.1.1.1, 2010/04/16 13:20:29
|
version 1.1.1.1.2.4, 2010/04/20 11:48:49
|
Line 32 inline const char *cli_GetError();
|
Line 32 inline const char *cli_GetError();
|
* cli_Printf() Printf CLI features |
* cli_Printf() Printf CLI features |
* @out = Output stream |
* @out = Output stream |
* @csFormat = Printf format string |
* @csFormat = Printf format string |
* return: none | * return: -1 error, != -1 printed chars |
*/ |
*/ |
inline int cli_Printf(FILE *out, const char *csFormat, ...); |
inline int cli_Printf(FILE *out, const char *csFormat, ...); |
|
|
/* |
/* |
|
* cliInit() Initialize Readline |
|
* @csProg = program name |
|
* return: none |
|
*/ |
|
inline void cliInit(const char *csProg); |
|
/* |
|
* cliNetInit() Initialize Readline if CLI bind to socket |
|
* @csProg = program name |
|
* @pty = Master pty |
|
* @term = stdin termios |
|
* return: none |
|
*/ |
|
void cliNetInit(const char *csProg, int pty, struct termios *term); |
|
/* |
|
* cliTTY() Initialize I/O TTY CLI features |
|
* @term = terminal name |
|
* @inp = input handle |
|
* @out = output handle |
|
* @win = window size |
|
* return: -1 error, != -1 ok |
|
*/ |
|
inline int cliTTY(const char *term, FILE *inp, FILE *out, struct winsize *win); |
|
/* |
* cliComp() Initialize completion CLI features |
* cliComp() Initialize completion CLI features |
* @cmdComplete = Completion function |
* @cmdComplete = Completion function |
* @cmdEntry = Compentry function |
* @cmdEntry = Compentry function |
Line 46 inline void cliComp(cli_Completion_t *cmdComplete, cli
|
Line 69 inline void cliComp(cli_Completion_t *cmdComplete, cli
|
/* |
/* |
* cliExec() Execute CLI main loop |
* cliExec() Execute CLI main loop |
* @cmdList = Commands list |
* @cmdList = Commands list |
* @out = Output handle |
|
* @csPrompt = Prompt text |
* @csPrompt = Prompt text |
* return: -1 error, 0 = exit w/^+D, 1 done. |
* return: -1 error, 0 = exit w/^+D, 1 done. |
*/ |
*/ |
int cliExec(cliCommands_t *cmdList, FILE *out, const char *csPrompt); | int cliExec(cliCommands_t *cmdList, const char *csPrompt); |
|
|
|
|
/* |
/* |