Trident IoT SDK
Loading...
Searching...
No Matches
tr_cli_command_table.h
Go to the documentation of this file.
1
10#ifndef TR_CLI_COMMAND_TABLE_H
11#define TR_CLI_COMMAND_TABLE_H
12
22
27typedef struct
28{
32 const char *command;
33
42 int (*handler)(int argc,
43 char *argv[]);
44
48 const char *help;
50
56#define TR_CLI_COMMAND_TABLE(table) const tr_command_s table[]
57
61#define TR_CLI_COMMAND_TABLE_END { "", NULL, "" }
62
66#define TR_CLI_SUB_COMMANDS NULL
67
71#define TR_CLI_SUB_COMMAND_TABLE (const char*)
72
77
78
79#endif // TR_CLI_COMMAND_TABLE_H
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