File:  [ELWIX - Embedded LightWeight unIX -] / libaitcli / inc / cli.h
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Mar 16 17:24:03 2011 UTC (13 years, 3 months ago) by misho
Branches: MAIN
CVS tags: cli2_1, HEAD, CLI2_0
2.0

    1: /*************************************************************************
    2: * (C) 2010 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
    3: *  by Michael Pounov <misho@openbsd-bg.org>
    4: *
    5: * $Author: misho $
    6: * $Id: cli.h,v 1.2 2011/03/16 17:24:03 misho Exp $
    7: *
    8: *************************************************************************/
    9: #ifndef __CLI_H
   10: #define __CLI_H
   11: 
   12: 
   13: /* CLI Helper functions */
   14: 
   15: /*
   16:  * cli_Cmd_Exit() Builtin helper function for Exit from Cli
   17:  * @buffer = CLI buffer
   18:  * @idx = Selected command ID
   19:  * @args = Parsed arguments array
   20:  * return: RETCODE_EOF exit from Cli!
   21:  */
   22: int cli_Cmd_Exit(void * __restrict buffer, int idx, char ** __restrict args);
   23: /*
   24:  * cli_Cmd_Help() Builtin helper function for Help screen
   25:  * @buffer = CLI buffer
   26:  * @idx = Selected command ID
   27:  * @args = Parsed arguments array
   28:  * return: RETCODE_ERR in error or RETCODE_OK
   29: */
   30: int cli_Cmd_Help(void * __restrict buffer, int idx, char ** __restrict args);
   31: 
   32: 
   33: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>