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

Function command_finish_rawstr

plugins/libplugin.c:517–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517struct 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
531struct command_result *WARN_UNUSED_RESULT
532command_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