Plugins could fail due to multiple hooks, but only add once. */
| 698 | |
| 699 | /* Plugins could fail due to multiple hooks, but only add once. */ |
| 700 | static void append_plugin_once(struct plugin ***ret, struct plugin *p) |
| 701 | { |
| 702 | for (size_t i = 0; i < tal_count(*ret); i++) { |
| 703 | if ((*ret)[i] == p) |
| 704 | return; |
| 705 | } |
| 706 | tal_arr_expand(ret, p); |
| 707 | } |
| 708 | |
| 709 | struct plugin **plugin_hooks_make_ordered(const tal_t *ctx, |
| 710 | struct logger *log) |
no outgoing calls
no test coverage detected