| 525 | } |
| 526 | |
| 527 | struct command_result *command_finish_rawstr(struct command *cmd, |
| 528 | const char *json, |
| 529 | size_t json_len) |
| 530 | { |
| 531 | struct json_stream *js = new_json_stream(cmd, cmd, NULL); |
| 532 | char *raw; |
| 533 | |
| 534 | assert(cmd->type == COMMAND_TYPE_NORMAL |
| 535 | || cmd->type == COMMAND_TYPE_HOOK); |
| 536 | raw = json_out_direct(js->jout, json_len); |
| 537 | memcpy(raw, json, json_len); |
| 538 | return command_complete_nojson(cmd, js); |
| 539 | } |
| 540 | |
| 541 | struct command_result *WARN_UNUSED_RESULT |
| 542 | command_still_pending(struct command *cmd) |
no test coverage detected