| 522 | } |
| 523 | |
| 524 | struct command_result *command_raw_complete(struct command *cmd, |
| 525 | struct json_stream *result) |
| 526 | { |
| 527 | json_stream_close(result, cmd); |
| 528 | |
| 529 | /* If we have a jcon, it will free result for us. */ |
| 530 | if (cmd->jcon) |
| 531 | tal_steal(cmd->jcon, result); |
| 532 | |
| 533 | tal_free(cmd); |
| 534 | return &complete; |
| 535 | } |
| 536 | |
| 537 | struct command_result *command_success(struct command *cmd, |
| 538 | struct json_stream *result) |
no test coverage detected