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

Function plugin_hooks_make_ordered

lightningd/plugin_hook.c:720–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720struct plugin **plugin_hooks_make_ordered(const tal_t *ctx,
721 struct logger *log)
722{
723 size_t num_hooks;
724 struct plugin_hook **hooks = get_hooks(&num_hooks);
725 struct plugin **ret = tal_arr(ctx, struct plugin *, 0);
726
727 for (size_t i=0; i<num_hooks; i++) {
728 struct plugin **these = plugin_hook_make_ordered(ctx, log, hooks[i]);
729 for (size_t j = 0; j < tal_count(these); j++)
730 append_plugin_once(&ret, these[j]);
731 }
732
733 return ret;
734}

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