--- libaitcli/inc/cli.h 2013/10/08 09:51:02 1.5.4.1 +++ libaitcli/inc/cli.h 2013/10/08 10:45:08 1.5.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.h,v 1.5.4.1 2013/10/08 09:51:02 misho Exp $ +* $Id: cli.h,v 1.5.4.2 2013/10/08 10:45:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -82,9 +82,18 @@ int cli_Cmd_Config(void * __restrict cli_buffer, int i * @cli_buffer = CLI buffer * @idx = Config level * @args = Parsed arguments array - * return: RETCODE_ERR in error or RETCODE_OK + * return: RETCODE_EOF in level 0 or RETCODE_OK */ int cli_Cmd_End(void * __restrict cli_buffer, int idx, char ** __restrict args); +/* + * cli_Cmd_Top() - Builtin helper function for top level of Cli + * + * @cli_buffer = CLI buffer + * @idx = Config level + * @args = Parsed arguments array + * return: RETCODE_OK ok +*/ +int cli_Cmd_Top(void * __restrict cli_buffer, int idx, char ** __restrict args); #endif