| 718 | } |
| 719 | |
| 720 | struct plugin **plugin_hooks_make_ordered(const tal_t *ctx, |
| 721 | struct logger *log) |
| 722 | { |
| 723 | size_t num_hooks; |
| 724 | struct plugin_hook **hooks = get_hooks(&num_hooks); |
| 725 | struct plugin **ret = tal_arr(ctx, struct plugin *, 0); |
| 726 | |
| 727 | for (size_t i=0; i<num_hooks; i++) { |
| 728 | struct plugin **these = plugin_hook_make_ordered(ctx, log, hooks[i]); |
| 729 | for (size_t j = 0; j < tal_count(these); j++) |
| 730 | append_plugin_once(&ret, these[j]); |
| 731 | } |
| 732 | |
| 733 | return ret; |
| 734 | } |
no test coverage detected