core-lightning/lightningd/plugin_control.h
Rusty Russell bf74be3348 plugins: add command field to subcommand output.
Makes it possible to write a decent JSON schema, but means we need to carry
additional data, so we create a `struct plugin_command`.

We remove the unused struct dynamic_plugin, too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-06-25 09:49:33 +09:30

21 lines
653 B
C

#ifndef LIGHTNING_LIGHTNINGD_PLUGIN_CONTROL_H
#define LIGHTNING_LIGHTNINGD_PLUGIN_CONTROL_H
#include "config.h"
#include <lightningd/plugin.h>
struct plugin_command;
/* Plugin startup failed */
struct command_result *plugin_cmd_killed(struct plugin_command *pcmd,
struct plugin *plugin, const char *msg);
/* Plugin startup succeeded */
struct command_result *plugin_cmd_succeeded(struct plugin_command *pcmd,
struct plugin *plugin);
/* All plugins succeeded/failed */
struct command_result *plugin_cmd_all_complete(struct plugins *plugins,
struct plugin_command *pcmd);
#endif /* LIGHTNING_LIGHTNINGD_PLUGIN_CONTROL_H */