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
13// structure used for each cli command table entry
14typedef struct
15{
16 const char *command;
17 int (*handler)(int argc,
18 char *argv[]);
19 const char *help;
21
22// macros for creating cli command tables
23#define TR_CLI_COMMAND_TABLE(table) const tr_command_s table[]
24#define TR_CLI_COMMAND_TABLE_END { "", NULL, "" }
25#define TR_CLI_SUB_COMMANDS NULL
26#define TR_CLI_SUB_COMMAND_TABLE (const char*)
27
28
29#endif // TR_CLI_COMMAND_TABLE_H
Definition tr_cli_command_table.h:15
const char * help
Definition tr_cli_command_table.h:19
const char * command
Definition tr_cli_command_table.h:16