MCPcopy Create free account
hub / github.com/ElementsProject/lightning / command_finish_rawstr

Function command_finish_rawstr

plugins/libplugin.c:527–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527struct 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
541struct command_result *WARN_UNUSED_RESULT
542command_still_pending(struct command *cmd)

Callers 1

reap_childFunction · 0.85

Calls 3

new_json_streamFunction · 0.85
json_out_directFunction · 0.85
command_complete_nojsonFunction · 0.85

Tested by

no test coverage detected