ExecutableFunc printHelp;
} Command;
+/* Macro indicating end of list of commands */
+#define CMD_LIST_END {NULL, AGAIN, NULL, NULL, NULL}
+
/**
* @brief Looks for a suitable child and recursively parses it.
* @details Used convention says that when string is NULL it matches
{ "config", NEXT, command_parse, gt_config_get_children, gt_config_help },
{ "func", NEXT, command_parse, gt_func_get_children, gt_func_help },
{ NULL, AGAIN, command_parse, get_gadget_children, gt_global_help },
- { NULL, AGAIN, NULL, NULL, NULL }
+ CMD_LIST_END
};
return commands;
{
static Command tool_names[] = {
{ NULL, NEXT, command_parse, gt_get_command_root_children, gt_global_help },
- { NULL, AGAIN, NULL, NULL, NULL }
+ CMD_LIST_END
};
return tool_names;
}