diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-30 14:02:51 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-30 14:02:51 +0200 |
commit | d1f5291f82f5e13db756adc919883e310cc537de (patch) | |
tree | a396b8649b4cc71c552ff9bdf0998baf633737b7 /client/cmd.h | |
parent | 2f443639c159f510b121fb8b3d7ce6aae61b06fb (diff) |
implement message dumping
Diffstat (limited to 'client/cmd.h')
-rw-r--r-- | client/cmd.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/cmd.h b/client/cmd.h index 7fefe98..961ef89 100644 --- a/client/cmd.h +++ b/client/cmd.h @@ -16,11 +16,12 @@ typedef struct cmd cmd_t; cmd_handle_t cmd_exit; cmd_handle_t cmd_test; cmd_handle_t cmd_help; -cmd_complete_t cmd_help_complete; cmd_handle_t cmd_reset; cmd_handle_t cmd_ls; cmd_handle_t cmd_send; cmd_handle_t cmd_skip; +cmd_handle_t cmd_dump; +cmd_complete_t cmd_dump_complete; static const cmd_t cmds[] = { { @@ -59,6 +60,12 @@ static const cmd_t cmds[] = { .name = "test", .info = "[debug] send a test puzbus message", }, + { + .handle = cmd_dump, + .name = "dump", + .info = "[debug] dump sent or received messages", + .complete = cmd_dump_complete, + }, #endif }; static const size_t cmds_length = sizeof(cmds) / sizeof(cmds[0]); |