| 2897 | } |
| 2898 | |
| 2899 | static struct command_result *param_forward_status(struct command *cmd, |
| 2900 | const char *name, |
| 2901 | const char *buffer, |
| 2902 | const jsmntok_t *tok, |
| 2903 | enum forward_status **status) |
| 2904 | { |
| 2905 | *status = tal(cmd, enum forward_status); |
| 2906 | if (string_to_forward_status(buffer + tok->start, |
| 2907 | tok->end - tok->start, |
| 2908 | *status)) |
| 2909 | return NULL; |
| 2910 | |
| 2911 | return command_fail_badparam(cmd, name, buffer, tok, |
| 2912 | "Unrecognized status"); |
| 2913 | } |
| 2914 | |
| 2915 | static struct command_result *json_listforwards(struct command *cmd, |
| 2916 | const char *buffer, |
no test coverage detected