| 444 | } |
| 445 | |
| 446 | struct command_result *command_raw_complete(struct command *cmd, |
| 447 | struct json_stream *result) |
| 448 | { |
| 449 | json_stream_close(result, cmd); |
| 450 | |
| 451 | /* If we have a jcon, it will free result for us. */ |
| 452 | if (cmd->jcon) |
| 453 | tal_steal(cmd->jcon, result); |
| 454 | |
| 455 | tal_free(cmd); |
| 456 | return &complete; |
| 457 | } |
| 458 | |
| 459 | struct command_result *command_success(struct command *cmd, |
| 460 | struct json_stream *result) |
no test coverage detected