mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
lightningd: wire plugin command JSON id through to plugin commands.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -214,17 +214,19 @@ bool plugin_blacklisted(struct plugins *plugins, const char *name);
|
||||
|
||||
/**
|
||||
* Kick off initialization of a plugin.
|
||||
* @p: plugin
|
||||
* @cmd_id: optional JSON cmd_id which caused this.
|
||||
*
|
||||
* Returns error string, or NULL.
|
||||
*/
|
||||
const char *plugin_send_getmanifest(struct plugin *p);
|
||||
const char *plugin_send_getmanifest(struct plugin *p, const char *cmd_id);
|
||||
|
||||
/**
|
||||
* Kick of initialization of all plugins which need it/
|
||||
*
|
||||
* Return true if any were started.
|
||||
*/
|
||||
bool plugins_send_getmanifest(struct plugins *plugins);
|
||||
bool plugins_send_getmanifest(struct plugins *plugins, const char *cmd_id);
|
||||
|
||||
/**
|
||||
* Kill a plugin process and free @plugin, with an error message.
|
||||
|
||||
Reference in New Issue
Block a user