| 515 | } |
| 516 | |
| 517 | struct command_result *command_finish_rawstr(struct command *cmd, |
| 518 | const char *json, |
| 519 | size_t json_len) |
| 520 | { |
| 521 | struct json_stream *js = new_json_stream(cmd, cmd, NULL); |
| 522 | char *raw; |
| 523 | |
| 524 | assert(cmd->type == COMMAND_TYPE_NORMAL |
| 525 | || cmd->type == COMMAND_TYPE_HOOK); |
| 526 | raw = json_out_direct(js->jout, json_len); |
| 527 | memcpy(raw, json, json_len); |
| 528 | return command_complete_nojson(cmd, js); |
| 529 | } |
| 530 | |
| 531 | struct command_result *WARN_UNUSED_RESULT |
| 532 | command_still_pending(struct command *cmd) |
no test coverage detected