Plugins could fail due to multiple hooks, but only add once. */
| 549 | |
| 550 | /* Plugins could fail due to multiple hooks, but only add once. */ |
| 551 | static void append_plugin_once(struct plugin ***ret, struct plugin *p) |
| 552 | { |
| 553 | for (size_t i = 0; i < tal_count(*ret); i++) { |
| 554 | if ((*ret)[i] == p) |
| 555 | return; |
| 556 | } |
| 557 | tal_arr_expand(ret, p); |
| 558 | } |
| 559 | |
| 560 | struct plugin **plugin_hooks_make_ordered(const tal_t *ctx) |
| 561 | { |
no outgoing calls
no test coverage detected