Browse Source

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

trytravis
Christian Decker 6 years ago
parent
commit
404352fc7e
  1. 4
      lightningd/plugin.c
  2. 9
      lightningd/plugin.h

4
lightningd/plugin.c

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

9
lightningd/plugin.h

@ -37,6 +37,15 @@ void plugins_init(struct plugins *plugins);
*/
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.
*

Loading…
Cancel
Save