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