| 594 | }; |
| 595 | |
| 596 | static 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. */ |
| 606 | static struct hook_node *get_best_candidate(struct hook_node *graph) |
no test coverage detected