Diff for /libaitcli/src/cli.c between versions 1.6.4.2 and 1.6.4.3

version 1.6.4.2, 2013/10/08 09:38:55 version 1.6.4.3, 2013/10/08 09:51:02
Line 50  SUCH DAMAGE. Line 50  SUCH DAMAGE.
  * cli_Cmd_Exit() - Builtin helper function for Exit from Cli   * cli_Cmd_Exit() - Builtin helper function for Exit from Cli
  *   *
  * @cli_buffer = CLI buffer   * @cli_buffer = CLI buffer
 * @idx = Selected command ID * @idx = Config level
  * @args = Parsed arguments array   * @args = Parsed arguments array
  * return: RETCODE_EOF exit from Cli!   * return: RETCODE_EOF exit from Cli!
 */  */
Line 64  int cli_Cmd_Exit(void * __restrict cli_buffer, int idx Line 64  int cli_Cmd_Exit(void * __restrict cli_buffer, int idx
  * cli_Cmd_Help() - Builtin helper function for Help screen   * cli_Cmd_Help() - Builtin helper function for Help screen
  *   *
  * @cli_buffer = CLI buffer   * @cli_buffer = CLI buffer
 * @idx = Selected command ID * @idx = Config level
  * @args = Parsed arguments array   * @args = Parsed arguments array
  * return: RETCODE_ERR in error or RETCODE_OK   * return: RETCODE_ERR in error or RETCODE_OK
 */  */
Line 112  int cli_Cmd_Help(void * __restrict cli_buffer, int idx Line 112  int cli_Cmd_Help(void * __restrict cli_buffer, int idx
  * cli_Cmd_Unsupported() - Builtin helper function for unsupported commands   * cli_Cmd_Unsupported() - Builtin helper function for unsupported commands
  *   *
  * @cli_buffer = CLI buffer   * @cli_buffer = CLI buffer
 * @idx = Selected command ID * @idx = Config level
  * @args = Parsed arguments array   * @args = Parsed arguments array
  * return: RETCODE_OK ok   * return: RETCODE_OK ok
 */  */
 int cli_Cmd_Unsupported(void * __restrict cli_buffer, int idx, char ** __restrict args)  int cli_Cmd_Unsupported(void * __restrict cli_buffer, int idx, char ** __restrict args)
 {  {
         cli_Printf(cli_buffer, "Command %s not supported in this version ...\n", args[0]);          cli_Printf(cli_buffer, "Command %s not supported in this version ...\n", args[0]);
           return RETCODE_OK;
   }
   
   /*
    * cli_Cmd_Config() - Builtin helper function for enter into config level from Cli
    *
    * @cli_buffer = CLI buffer
    * @idx = Config level
    * @args = Parsed arguments array
    * return: RETCODE_ERR in error or RETCODE_OK
   */
   int cli_Cmd_Config(void * __restrict cli_buffer, int idx, char ** __restrict args)
   {
           return RETCODE_OK;
   }
   
   /*
    * cli_Cmd_End() - Builtin helper function for end config level from Cli
    *
    * @cli_buffer = CLI buffer
    * @idx = Config level
    * @args = Parsed arguments array
    * return: RETCODE_ERR in error or RETCODE_OK
   */
   int cli_Cmd_End(void * __restrict cli_buffer, int idx, char ** __restrict args)
   {
         return RETCODE_OK;          return RETCODE_OK;
 }  }

Removed from v.1.6.4.2  
changed lines
  Added in v.1.6.4.3


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