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

Function find_hook

lightningd/plugin_hook.c:596–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594};
595
596static struct hook_node *find_hook(struct hook_node *graph, const char *name)
597{
598 for (size_t i = 0; i < tal_count(graph); i++) {
599 if (plugin_paths_match(graph[i].hook->plugin->cmd, name))
600 return graph + i;
601 }
602 return NULL;
603}
604
605/* Sometimes naive is best. */
606static struct hook_node *get_best_candidate(struct hook_node *graph)

Callers 1

plugin_hook_make_orderedFunction · 0.85

Calls 1

plugin_paths_matchFunction · 0.85

Tested by

no test coverage detected