--- libaitcli/inc/cli.h 2010/06/07 11:54:55 1.1.2.1 +++ libaitcli/inc/cli.h 2011/03/16 17:24:03 1.2 @@ -1,3 +1,11 @@ +/************************************************************************* +* (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 @@ -11,7 +19,15 @@ * @args = Parsed arguments array * return: RETCODE_EOF exit from Cli! */ -int cli_Cmd_Exit(void * __restrict buffer, int idx, char ** __restrict argv); +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