Plugins could fail due to multiple hooks, but only add once. */
| 709 | |
| 710 | /* Plugins could fail due to multiple hooks, but only add once. */ |
| 711 | static void append_plugin_once(struct plugin ***ret, struct plugin *p) |
| 712 | { |
| 713 | for (size_t i = 0; i < tal_count(*ret); i++) { |
| 714 | if ((*ret)[i] == p) |
| 715 | return; |
| 716 | } |
| 717 | tal_arr_expand(ret, p); |
| 718 | } |
| 719 | |
| 720 | struct plugin **plugin_hooks_make_ordered(const tal_t *ctx, |
| 721 | struct logger *log) |
no outgoing calls
no test coverage detected