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

Function add_deps

lightningd/plugin_hook.c:551–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551static void add_deps(const char ***arr,
552 const char *buffer,
553 const jsmntok_t *arrtok)
554{
555 const jsmntok_t *t;
556 size_t i;
557
558 if (!arrtok)
559 return;
560
561 json_for_each_arr(i, t, arrtok)
562 tal_arr_expand(arr, json_strdup(*arr, buffer, t));
563}
564
565void plugin_hook_add_deps(struct plugin_hook *hook,
566 struct plugin *plugin,

Callers 1

plugin_hook_add_depsFunction · 0.85

Calls 1

json_strdupFunction · 0.50

Tested by

no test coverage detected