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

Function add_deps

lightningd/plugin_hook.c:540–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540static void add_deps(const char ***arr,
541 const char *buffer,
542 const jsmntok_t *arrtok)
543{
544 const jsmntok_t *t;
545 size_t i;
546
547 if (!arrtok)
548 return;
549
550 json_for_each_arr(i, t, arrtok)
551 tal_arr_expand(arr, json_strdup(*arr, buffer, t));
552}
553
554void plugin_hook_add_deps(struct plugin_hook *hook,
555 struct plugin *plugin,

Callers 1

plugin_hook_add_depsFunction · 0.85

Calls 1

json_strdupFunction · 0.50

Tested by

no test coverage detected