]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/command.h
Z180 banking updates
[z180-stamp.git] / include / command.h
index 2fd20a0b4855382fb5d08911a123237d5c19e379..5582fa5bc5d8836756d8ae07e6999131e1b30428 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * (C) Copyright 2000-2009
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
 
 /*
  *  Definitions for Command Processor
@@ -26,8 +34,8 @@
  * cmd_usage() all over the place.
  */
 typedef enum {
-       CMD_RET_SUCCESS,        /* 0 = Success */
-       CMD_RET_FAILURE,        /* 1 = Failure */
+       CMD_RET_SUCCESS = 0,    /* Success */
+       CMD_RET_FAILURE = 1,    /* Failure */
        CMD_RET_USAGE = -1,     /* Failure, please report 'usage' error */
 } command_ret_t;
 
@@ -37,11 +45,11 @@ typedef enum {
 
 struct cmd_tbl_s {
        const FLASH char *name;         /* Command Name                 */
-       int             maxargs;        /* maximum number of arguments  */
-       int             repeatable;     /* autorepeat allowed?          */
-                                       /* Implementation function      */
+       int             maxargs;                        /* maximum number of arguments  */
+       int             repeatable;                     /* autorepeat allowed?          */
+                                                               /* Implementation function      */
        command_ret_t   (*cmd)(const FLASH struct cmd_tbl_s *, int, int, char * const []);
-       const FLASH char *usage;                /* Usage message        (short) */
+       const FLASH char *usage;        /* Usage message        (short) */
 #ifdef CONFIG_SYS_LONGHELP
        const FLASH char *help;         /* Help  message        (long)  */
 #endif