| 638 | } |
| 639 | |
| 640 | struct command_result *forward_result(struct command *cmd, |
| 641 | const char *method, |
| 642 | const char *buf, |
| 643 | const jsmntok_t *result, |
| 644 | void *arg UNNEEDED) |
| 645 | { |
| 646 | /* Push through the result. */ |
| 647 | return command_done_raw(cmd, "result", |
| 648 | buf + result->start, result->end - result->start); |
| 649 | } |
| 650 | |
| 651 | /* Called by param() directly if it's malformed. */ |
| 652 | struct command_result *command_fail(struct command *cmd, |