--- libaitcli/inc/cli.h 2010/06/07 11:54:55 1.1 +++ libaitcli/inc/cli.h 2011/03/16 17:24:03 1.2 @@ -0,0 +1,33 @@ +/************************************************************************* +* (C) 2010 AITNET ltd - Sofia/Bulgaria - +* by Michael Pounov +* +* $Author: misho $ +* $Id: cli.h,v 1.2 2011/03/16 17:24:03 misho Exp $ +* +*************************************************************************/ +#ifndef __CLI_H +#define __CLI_H + + +/* CLI Helper functions */ + +/* + * cli_Cmd_Exit() Builtin helper function for Exit from Cli + * @buffer = CLI buffer + * @idx = Selected command ID + * @args = Parsed arguments array + * return: RETCODE_EOF exit from Cli! + */ +int cli_Cmd_Exit(void * __restrict buffer, int idx, char ** __restrict args); +/* + * cli_Cmd_Help() Builtin helper function for Help screen + * @buffer = CLI buffer + * @idx = Selected command ID + * @args = Parsed arguments array + * return: RETCODE_ERR in error or RETCODE_OK +*/ +int cli_Cmd_Help(void * __restrict buffer, int idx, char ** __restrict args); + + +#endif