str is raw JSON from RPC output. */
| 568 | |
| 569 | /* str is raw JSON from RPC output. */ |
| 570 | static struct command_result *WARN_UNUSED_RESULT |
| 571 | command_done_raw(struct command *cmd, |
| 572 | const char *label, |
| 573 | const char *str, int size) |
| 574 | { |
| 575 | struct json_stream *js = jsonrpc_stream_start(cmd); |
| 576 | |
| 577 | memcpy(json_out_member_direct(js->jout, label, size), str, size); |
| 578 | |
| 579 | return command_complete(cmd, js); |
| 580 | } |
| 581 | |
| 582 | struct command_result *WARN_UNUSED_RESULT |
| 583 | command_success(struct command *cmd, const struct json_out *result) |
no test coverage detected