| 558 | } |
| 559 | |
| 560 | struct plugin **plugin_hooks_make_ordered(const tal_t *ctx) |
| 561 | { |
| 562 | size_t num_hooks; |
| 563 | struct plugin_hook **hooks = get_hooks(&num_hooks); |
| 564 | struct plugin **ret = tal_arr(ctx, struct plugin *, 0); |
| 565 | |
| 566 | for (size_t i=0; i<num_hooks; i++) { |
| 567 | struct plugin **these = plugin_hook_make_ordered(ctx, hooks[i]); |
| 568 | for (size_t j = 0; j < tal_count(these); j++) |
| 569 | append_plugin_once(&ret, these[j]); |
| 570 | } |
| 571 | |
| 572 | return ret; |
| 573 | } |
no test coverage detected