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

Function command_done_raw

plugins/libplugin.c:580–590  ·  view source on GitHub ↗

str is raw JSON from RPC output. */

Source from the content-addressed store, hash-verified

578
579/* str is raw JSON from RPC output. */
580static struct command_result *WARN_UNUSED_RESULT
581command_done_raw(struct command *cmd,
582 const char *label,
583 const char *str, int size)
584{
585 struct json_stream *js = jsonrpc_stream_start(cmd);
586
587 memcpy(json_out_member_direct(js->jout, label, size), str, size);
588
589 return command_complete(cmd, js);
590}
591
592struct command_result *WARN_UNUSED_RESULT
593command_success(struct command *cmd, const struct json_out *result)

Callers 3

command_err_rawFunction · 0.85
forward_errorFunction · 0.85
forward_resultFunction · 0.85

Calls 3

jsonrpc_stream_startFunction · 0.85
json_out_member_directFunction · 0.85
command_completeFunction · 0.85

Tested by

no test coverage detected