mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-27 17:54:20 +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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user