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:
darosior
2019-07-29 14:14:19 +02:00
committed by Christian Decker
parent 017ee7c916
commit 0cd3823c98
4 changed files with 17 additions and 10 deletions

View File

@@ -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;