str is raw JSON from RPC output. */
| 378 | |
| 379 | /* str is raw JSON from RPC output. */ |
| 380 | static struct command_result *WARN_UNUSED_RESULT |
| 381 | command_done_raw(struct command *cmd, |
| 382 | const char *label, |
| 383 | const char *str, int size) |
| 384 | { |
| 385 | struct json_stream *js = jsonrpc_stream_start(cmd); |
| 386 | |
| 387 | memcpy(json_out_member_direct(js->jout, label, size), str, size); |
| 388 | |
| 389 | return command_complete(cmd, js); |
| 390 | } |
| 391 | |
| 392 | struct command_result *WARN_UNUSED_RESULT |
| 393 | command_success(struct command *cmd, const struct json_out *result) |
no test coverage detected