| 707 | } |
| 708 | |
| 709 | struct plugin **plugin_hooks_make_ordered(const tal_t *ctx, |
| 710 | struct logger *log) |
| 711 | { |
| 712 | size_t num_hooks; |
| 713 | struct plugin_hook **hooks = get_hooks(&num_hooks); |
| 714 | struct plugin **ret = tal_arr(ctx, struct plugin *, 0); |
| 715 | |
| 716 | for (size_t i=0; i<num_hooks; i++) { |
| 717 | struct plugin **these = plugin_hook_make_ordered(ctx, log, hooks[i]); |
| 718 | for (size_t j = 0; j < tal_count(these); j++) |
| 719 | append_plugin_once(&ret, these[j]); |
| 720 | } |
| 721 | |
| 722 | return ret; |
| 723 | } |
no test coverage detected