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

Function find_hook

lightningd/plugin_hook.c:457–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455};
456
457static struct hook_node *find_hook(struct hook_node *graph, const char *name)
458{
459 for (size_t i = 0; i < tal_count(graph); i++) {
460 if (plugin_paths_match(graph[i].hook->plugin->cmd, name))
461 return graph + i;
462 }
463 return NULL;
464}
465
466/* Sometimes naive is best. */
467static 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