--- libaitcli/inc/aitcli.h 2010/06/04 12:08:32 1.2.2.1 +++ libaitcli/inc/aitcli.h 2010/06/04 12:46:27 1.2.2.2 @@ -3,13 +3,15 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.h,v 1.2.2.1 2010/06/04 12:08:32 misho Exp $ +* $Id: aitcli.h,v 1.2.2.2 2010/06/04 12:46:27 misho Exp $ * *************************************************************************/ #ifndef __AITCLI_H #define __AITCLI_H +#define STRSIZ 256 + /* Key definitions */ #define K_F1 "\x1b\x4f\x50" @@ -212,7 +214,7 @@ inline const char *cli_GetError(); * @csPrompt = Prompt text * return: -1 error, 0 = exit w/^+D, 1 done. */ -int cliExec(cliCommands_t *cmdList, const char *csPrompt); +int cliExec(commands_t *cmdList, const char *csPrompt); /* * cliNetExec() Execute net CLI main loop * @cmdList = Commands list @@ -222,7 +224,7 @@ int cliExec(cliCommands_t *cmdList, const char *csProm * @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); +int cliNetExec(commands_t *cmdList, const char *csPrompt, int sock, struct termios *term, struct winsize *win); /* CLI Helper functions */