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

Function find_hook

lightningd/plugin_hook.c:585–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583};
584
585static struct hook_node *find_hook(struct hook_node *graph, const char *name)
586{
587 for (size_t i = 0; i < tal_count(graph); i++) {
588 if (plugin_paths_match(graph[i].hook->plugin->cmd, name))
589 return graph + i;
590 }
591 return NULL;
592}
593
594/* Sometimes naive is best. */
595static 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