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

Function json_add_id

common/json_stream.c:685–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685void json_add_id(struct json_stream *result, const char *id)
686{
687 char *p;
688
689 /* Bypass escape-required assertion in json_out_add */
690 p = json_member_direct(result, "id", strlen(id));
691 memcpy(p, id, strlen(id));
692}

Callers 7

json_notify_fmtFunction · 0.85
json_startFunction · 0.85
jsonrpc_request_start_Function · 0.85
jsonrpc_request_start_Function · 0.85
jsonrpc_stream_startFunction · 0.85
plugin_notify_startFunction · 0.85
run_childFunction · 0.85

Calls 1

json_member_directFunction · 0.85

Tested by

no test coverage detected