Skip to content

Commit abd90ee

Browse files
committed
Fix cmddesc_t structure missing handler function
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 38c994f commit abd90ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/command.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ typedef struct {
8181
const char *cmd; /**< Name of command */
8282
int min_arg; /**< Minimum arguments */
8383
int max_arg; /**< Maximum arguments */
84+
cmd_handler_f cmdfn;/**< Command handler function */
8485
const char *help; /**< Short help message */
8586
const char *usage; /**< Long help message with usage */
8687
int type; /**< Command type flags command_type_e */
@@ -91,7 +92,7 @@ typedef struct {
9192
* @param _name Name of command
9293
* @param _minarg Minimum number of arguments including command (must be >= 1)
9394
* @param _maxarg Maximum number of arguments including command (must be >= 1 & <= CMD_MAX_ARGS)
94-
* @param _cmd Command function
95+
* @param _cmd Command handler function
9596
* @param _help Short help message
9697
* @param _usage Long help message and usage detail
9798
* @param _type Command type flag see command_type_e

0 commit comments

Comments
 (0)