| 455 | }; |
| 456 | |
| 457 | static 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. */ |
| 467 | static struct hook_node *get_best_candidate(struct hook_node *graph) |
no test coverage detected