--- libaitcli/inc/aitcli.h 2010/04/20 12:16:52 1.1.1.1.2.6 +++ libaitcli/inc/aitcli.h 2010/04/24 10:02:33 1.1.1.1.2.7 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.h,v 1.1.1.1.2.6 2010/04/20 12:16:52 misho Exp $ +* $Id: aitcli.h,v 1.1.1.1.2.7 2010/04/24 10:02:33 misho Exp $ * *************************************************************************/ #ifndef __AITCLI_H @@ -73,6 +73,16 @@ inline void cliComp(cli_Completion_t *cmdComplete, cli * return: -1 error, 0 = exit w/^+D, 1 done. */ 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