| 469 | } |
| 470 | |
| 471 | static struct command_result *param_subsystem(struct command *cmd, |
| 472 | const char *name, |
| 473 | const char *buffer, |
| 474 | const jsmntok_t *tok, |
| 475 | enum subsystem **subsystem) |
| 476 | { |
| 477 | *subsystem = tal(cmd, enum subsystem); |
| 478 | if (json_to_subsystem(buffer, tok, *subsystem)) |
| 479 | return NULL; |
| 480 | |
| 481 | return command_fail_badparam(cmd, name, buffer, tok, |
| 482 | "should be a valid subsystem name"); |
| 483 | } |
| 484 | |
| 485 | static struct command_result *json_success_subsystems(struct command *cmd, |
| 486 | const enum subsystem *subsystem) |
nothing calls this directly
no test coverage detected