| 705 | } |
| 706 | |
| 707 | static struct command_result *param_subsystem(struct command *cmd, |
| 708 | const char *name, |
| 709 | const char *buffer, |
| 710 | const jsmntok_t *tok, |
| 711 | struct subsystem_and_variant **sv) |
| 712 | { |
| 713 | *sv = tal(cmd, struct subsystem_and_variant); |
| 714 | if (json_to_subsystem(buffer, tok, *sv)) |
| 715 | return NULL; |
| 716 | |
| 717 | return command_fail_badparam(cmd, name, buffer, tok, |
| 718 | "should be a valid subsystem name"); |
| 719 | } |
| 720 | |
| 721 | static struct command_result *json_success_subsystems(struct command *cmd, |
| 722 | const struct subsystem_and_variant *single) |
nothing calls this directly
no test coverage detected