| 648 | } |
| 649 | |
| 650 | struct command_result *forward_result(struct command *cmd, |
| 651 | const char *method, |
| 652 | const char *buf, |
| 653 | const jsmntok_t *result, |
| 654 | void *arg UNNEEDED) |
| 655 | { |
| 656 | /* Push through the result. */ |
| 657 | return command_done_raw(cmd, "result", |
| 658 | buf + result->start, result->end - result->start); |
| 659 | } |
| 660 | |
| 661 | /* Called by param() directly if it's malformed. */ |
| 662 | struct command_result *command_fail(struct command *cmd, |