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

Function plugin_hooks_make_ordered

lightningd/plugin_hook.c:560–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560struct plugin **plugin_hooks_make_ordered(const tal_t *ctx)
561{
562 size_t num_hooks;
563 struct plugin_hook **hooks = get_hooks(&num_hooks);
564 struct plugin **ret = tal_arr(ctx, struct plugin *, 0);
565
566 for (size_t i=0; i<num_hooks; i++) {
567 struct plugin **these = plugin_hook_make_ordered(ctx, hooks[i]);
568 for (size_t j = 0; j < tal_count(these); j++)
569 append_plugin_once(&ret, these[j]);
570 }
571
572 return ret;
573}

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