/*************************************************************************
* (C) 2010 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
* by Michael Pounov <misho@openbsd-bg.org>
*
* $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
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>