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

Function json_add_keypath

plugins/libplugin.c:851–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849}
850
851void json_add_keypath(struct json_out *jout,
852 const char *fieldname,
853 const char **keys)
854{
855 json_out_start(jout, fieldname, '[');
856 for (size_t i = 0; i < tal_count(keys); i++)
857 json_out_addstr(jout, NULL, keys[i]);
858 json_out_end(jout, ']');
859}
860
861static const char *rpc_scan_datastore(const tal_t *ctx,
862 struct command *cmd,

Callers 3

rpc_scan_datastoreFunction · 0.85
jsonrpc_set_datastore_Function · 0.85
jsonrpc_get_datastore_Function · 0.85

Calls 3

json_out_startFunction · 0.85
json_out_addstrFunction · 0.85
json_out_endFunction · 0.85

Tested by

no test coverage detected