When we destroy a plugin, we NULL out any hooks it registered */
| 59 | |
| 60 | /* When we destroy a plugin, we NULL out any hooks it registered */ |
| 61 | static void remove_hook_instance(const struct hook_instance *h, |
| 62 | struct hook_instance **hookarr) |
| 63 | { |
| 64 | for (size_t i = 0; i < tal_count(hookarr); i++) { |
| 65 | if (h == hookarr[i]) { |
| 66 | hookarr[i] = NULL; |
| 67 | return; |
| 68 | } |
| 69 | } |
| 70 | abort(); |
| 71 | } |
| 72 | |
| 73 | static void destroy_hook_instance(struct hook_instance *h, |
| 74 | struct plugin_hook *hook) |
no test coverage detected