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

@@ -1271,7 +1271,8 @@ static struct command_result *json_listpays(struct command *cmd,
take(json_out_obj(NULL, "bolt11", b11str)));
}
static void init(struct plugin_conn *rpc)
static void init(struct plugin_conn *rpc,
const char *buf UNUSED, const jsmntok_t *config UNUSED)
{
const char *field;