version 1.1.1.1.2.4, 2010/04/20 11:48:49
|
version 1.1.1.1.2.7, 2010/04/24 10:02:33
|
Line 73 inline void cliComp(cli_Completion_t *cmdComplete, cli
|
Line 73 inline void cliComp(cli_Completion_t *cmdComplete, cli
|
* return: -1 error, 0 = exit w/^+D, 1 done. |
* return: -1 error, 0 = exit w/^+D, 1 done. |
*/ |
*/ |
int cliExec(cliCommands_t *cmdList, const char *csPrompt); |
int cliExec(cliCommands_t *cmdList, const char *csPrompt); |
|
/* |
|
* cliNetExec() Execute net CLI main loop |
|
* @cmdList = Commands list |
|
* @csPrompt = Prompt text |
|
* @sock = client socket |
|
* @term = stdin termios |
|
* @win = window size of tty |
|
* return: -1 error, 0 = exit w/^+D, 1 done. |
|
*/ |
|
int cliNetExec(cliCommands_t *cmdList, const char *csPrompt, int sock, struct termios *term, struct winsize *win); |
|
|
|
/* |
|
* cli_ReadHistory() Read CLI History from file |
|
* @csFile = history file name, if NULL default history name is ".aitcli.history" |
|
* return: -1 error; != -1 readed ok |
|
*/ |
|
inline int cli_ReadHistory(const char *csFile); |
|
/* |
|
* cli_WriteHistory() Write CLI History to file |
|
* @csFile = history file name, if NULL default history name is ".aitcli.history" |
|
* @lineNum = save number of history entry lines, if -1 all lines saved without limit |
|
* return: -1 error; != -1 readed ok |
|
*/ |
|
inline int cli_WriteHistory(const char *csFile, int lineNum); |
|
|
|
|
/* |
/* |