| 183 | } |
| 184 | |
| 185 | struct command_result *plugin_register_all_complete(struct lightningd *ld, |
| 186 | struct plugin_command *pcmd) |
| 187 | { |
| 188 | if (plugins_all_in_state(ld->plugins, INIT_COMPLETE)) |
| 189 | return plugin_cmd_all_complete(ld->plugins, pcmd); |
| 190 | |
| 191 | tal_arr_expand(&ld->plugins->plugin_cmds, pcmd); |
| 192 | return NULL; |
| 193 | } |
| 194 | |
| 195 | static void destroy_plugin(struct plugin *p) |
| 196 | { |
no test coverage detected