| 169 | } |
| 170 | |
| 171 | static struct command_result *param_forward_status(struct command *cmd, |
| 172 | const char *name, |
| 173 | const char *buffer, |
| 174 | const jsmntok_t *tok, |
| 175 | enum forward_status **status) |
| 176 | { |
| 177 | *status = tal(cmd, enum forward_status); |
| 178 | if (string_to_forward_status(buffer + tok->start, |
| 179 | tok->end - tok->start, |
| 180 | *status)) |
| 181 | return NULL; |
| 182 | |
| 183 | return command_fail_badparam(cmd, name, buffer, tok, |
| 184 | "Unrecognized status"); |
| 185 | } |
| 186 | |
| 187 | static struct command_result *json_listforwards(struct command *cmd, |
| 188 | const char *buffer, |
no test coverage detected