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

Function command_done_raw

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

str is raw JSON from RPC output. */

Source from the content-addressed store, hash-verified

568
569/* str is raw JSON from RPC output. */
570static struct command_result *WARN_UNUSED_RESULT
571command_done_raw(struct command *cmd,
572 const char *label,
573 const char *str, int size)
574{
575 struct json_stream *js = jsonrpc_stream_start(cmd);
576
577 memcpy(json_out_member_direct(js->jout, label, size), str, size);
578
579 return command_complete(cmd, js);
580}
581
582struct command_result *WARN_UNUSED_RESULT
583command_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