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

Function plugin_hooks_make_ordered

lightningd/plugin_hook.c:709–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709struct plugin **plugin_hooks_make_ordered(const tal_t *ctx,
710 struct logger *log)
711{
712 size_t num_hooks;
713 struct plugin_hook **hooks = get_hooks(&num_hooks);
714 struct plugin **ret = tal_arr(ctx, struct plugin *, 0);
715
716 for (size_t i=0; i<num_hooks; i++) {
717 struct plugin **these = plugin_hook_make_ordered(ctx, log, hooks[i]);
718 for (size_t j = 0; j < tal_count(these); j++)
719 append_plugin_once(&ret, these[j]);
720 }
721
722 return ret;
723}

Callers 1

check_plugins_manifestsFunction · 0.85

Calls 3

get_hooksFunction · 0.85
plugin_hook_make_orderedFunction · 0.85
append_plugin_onceFunction · 0.85

Tested by

no test coverage detected