10#ifndef TR_CLI_COMMAND_TABLE_H
11#define TR_CLI_COMMAND_TABLE_H
56#define TR_CLI_COMMAND_TABLE(table) const tr_command_s table[]
61#define TR_CLI_COMMAND_TABLE_END { "", NULL, "" }
66#define TR_CLI_SUB_COMMANDS NULL
71#define TR_CLI_SUB_COMMAND_TABLE (const char*)
Structure used for each CLI command table entry.
Definition tr_cli_command_table.h:28
const char * help
Help text describing the command.
Definition tr_cli_command_table.h:48
int(* handler)(int argc, char *argv[])
Function pointer to the command handler.
Definition tr_cli_command_table.h:42
const char * command
Command string that triggers this handler.
Definition tr_cli_command_table.h:32