plugin: Configure plugins once we've collected all cli options

This commit is contained in:
Christian Decker 2018-11-02 20:04:32 +01:00
parent 55d6d6b0e7
commit 404352fc7e
2 changed files with 13 additions and 0 deletions

View File

@ -411,6 +411,10 @@ void plugins_init(struct plugins *plugins)
io_loop(NULL, NULL); io_loop(NULL, NULL);
} }
void plugins_config(struct plugins *plugins)
{
}
void json_add_opt_plugins(struct json_stream *response, void json_add_opt_plugins(struct json_stream *response,
const struct plugins *plugins) const struct plugins *plugins)
{ {

View File

@ -37,6 +37,15 @@ void plugins_init(struct plugins *plugins);
*/ */
void plugin_register(struct plugins *plugins, const char* path TAKES); void plugin_register(struct plugins *plugins, const char* path TAKES);
/**
* Send the configure message to all plugins.
*
* Once we've collected all the command line arguments we can go ahead
* and send them over to the plugin. This finalizes the initialization
* of the plugins and signals that lightningd is now ready to process
* incoming JSON-RPC calls and messages.
*/
void plugins_config(struct plugins *plugins);
/** /**
* Add the plugin option and their respective options to listconfigs. * Add the plugin option and their respective options to listconfigs.
* *