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

Function command_done_raw

plugins/libplugin.c:380–390  ·  view source on GitHub ↗

str is raw JSON from RPC output. */

Source from the content-addressed store, hash-verified

378
379/* str is raw JSON from RPC output. */
380static struct command_result *WARN_UNUSED_RESULT
381command_done_raw(struct command *cmd,
382 const char *label,
383 const char *str, int size)
384{
385 struct json_stream *js = jsonrpc_stream_start(cmd);
386
387 memcpy(json_out_member_direct(js->jout, label, size), str, size);
388
389 return command_complete(cmd, js);
390}
391
392struct command_result *WARN_UNUSED_RESULT
393command_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