lightningd: wire plugin command JSON id through to plugin commands.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-09-13 06:49:11 +09:30
parent ea7903f69a
commit eceb9f4328
4 changed files with 15 additions and 11 deletions

View File

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