str is raw JSON from RPC output. */
| 578 | |
| 579 | /* str is raw JSON from RPC output. */ |
| 580 | static struct command_result *WARN_UNUSED_RESULT |
| 581 | command_done_raw(struct command *cmd, |
| 582 | const char *label, |
| 583 | const char *str, int size) |
| 584 | { |
| 585 | struct json_stream *js = jsonrpc_stream_start(cmd); |
| 586 | |
| 587 | memcpy(json_out_member_direct(js->jout, label, size), str, size); |
| 588 | |
| 589 | return command_complete(cmd, js); |
| 590 | } |
| 591 | |
| 592 | struct command_result *WARN_UNUSED_RESULT |
| 593 | command_success(struct command *cmd, const struct json_out *result) |
no test coverage detected