--- libaitcli/inc/aitcli.h 2010/06/09 09:32:30 1.2.2.12 +++ libaitcli/inc/aitcli.h 2010/12/07 15:09:02 1.2.2.13 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.h,v 1.2.2.12 2010/06/09 09:32:30 misho Exp $ +* $Id: aitcli.h,v 1.2.2.13 2010/12/07 15:09:02 misho Exp $ * *************************************************************************/ #ifndef __AITCLI_H @@ -349,18 +349,17 @@ void cliEnd(linebuffer_t * __restrict buffer); linebuffer_t *cliInit(int fin, int fout, const char *prompt); /* - * cliReadLine() Read line from opened CLI session + * cliInitLine() Init CLI input line terminal * @buffer = CLI buffer - * return: NULL if error or !=NULL readed line, must be free after use! + * return: none */ -char *cliReadLine(linebuffer_t * __restrict buffer); +int cliInitLine(linebuffer_t * __restrict buffer); /* - * cliLoop() CLI main loop + * cliReadLine() Read line from opened CLI session * @buffer = CLI buffer - * @csHistFile = History file name - * return: RETCODE_ERR error, RETCODE_OK ok + * return: NULL if error or !=NULL readed line, must be free after use! */ -int cliLoop(linebuffer_t * __restrict buffer, const char *csHistFile); +char *cliReadLine(linebuffer_t * __restrict buffer); /* * cliLoop() CLI main loop