mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
bf74be3348
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>
21 lines
653 B
C
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 */
|