mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
libplugin: pass configuration to plugin's 'init' callback
So that a plugin can, for example, know if it has been loaded on startup
This commit is contained in:
committed by
Christian Decker
parent
017ee7c916
commit
0cd3823c98
@@ -65,7 +65,8 @@ static struct command_result *json_autocleaninvoice(struct command *cmd,
|
||||
expired_by, cycle_seconds));
|
||||
}
|
||||
|
||||
static void init(struct plugin_conn *prpc)
|
||||
static void init(struct plugin_conn *prpc,
|
||||
const char *buf UNUSED, const jsmntok_t *config UNUSED)
|
||||
{
|
||||
rpc = prpc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user