--- libaitcli/inc/aitcli.h 2010/04/20 11:48:49 1.1.1.1.2.4 +++ libaitcli/inc/aitcli.h 2010/04/20 12:09:48 1.1.1.1.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.h,v 1.1.1.1.2.4 2010/04/20 11:48:49 misho Exp $ +* $Id: aitcli.h,v 1.1.1.1.2.5 2010/04/20 12:09:48 misho Exp $ * *************************************************************************/ #ifndef __AITCLI_H @@ -73,6 +73,19 @@ 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); + +/* + * 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" + * return: -1 error; != -1 readed ok +*/ +inline int cli_WriteHistory(const char *csFile); /*