| 65 | } |
| 66 | |
| 67 | static struct command_result *json_memdump(struct command *cmd, |
| 68 | const char *buffer, |
| 69 | const jsmntok_t *obj UNNEEDED, |
| 70 | const jsmntok_t *params) |
| 71 | { |
| 72 | struct json_stream *response; |
| 73 | |
| 74 | if (!param(cmd, buffer, params, NULL)) |
| 75 | return command_param_failed(); |
| 76 | |
| 77 | response = json_stream_success(cmd); |
| 78 | add_memdump(response, "memdump", NULL, cmd); |
| 79 | |
| 80 | return command_success(cmd, response); |
| 81 | } |
| 82 | |
| 83 | static const struct json_command dev_memdump_command = { |
| 84 | "dev-memdump", |
nothing calls this directly
no test coverage detected