215 .info =
"show this help",
220 .info =
"set a puzzle module's game state to 'idle'",
225 .info =
"set a puzzle module's game state to 'solved'",
231 .info =
"[debug] send raw message",
236 .info =
"[debug] send a test puzbus message",
241 .info =
"[debug] dump sent or received messages",
cmd_handle_t cmd_send
send command
Definition cmd.h:172
cmd_handle_t cmd_exit
exit command
Definition cmd.h:61
cmd_handle_t cmd_dump
dump command
Definition cmd.h:198
void cmd_handle_t(char *line)
Command handler function.
Definition cmd.h:19
cmd_handle_t cmd_reset
reset command
Definition cmd.h:99
static const size_t cmds_length
Number of commands defined in cmds.
Definition cmd.h:248
cmd_handle_t cmd_skip
skip command
Definition cmd.h:185
cmd_complete_t cmd_dump_complete
dump completion function
Definition cmd.h:203
cmd_handle_t cmd_test
test command
Definition cmd.h:75
char ** cmd_complete_t(const char *text, int start, int end)
Command completion function.
Definition cmd.h:31
cmd_handle_t cmd_help
help command
Definition cmd.h:86
static const cmd_t cmds[]
Commands.
Definition cmd.h:206
Command definition struct.
Definition cmd.h:37
const char * name
Command name (required)
Definition cmd.h:39
cmd_handle_t * handle
Handler function (required)
Definition cmd.h:38
cmd_complete_t * complete
Completion function (optional = NULL)
Definition cmd.h:42
const char * info
Command info (shown in help command) (optional = NULL)
Definition cmd.h:41