lightningd/plugin: Add a 'dynamic' field to getmanifest and a 'startup' field to init

This lets a plugin specify whether it can be restarted, and to know if it is started at lightningd startup
This commit is contained in:
darosior
2019-07-18 14:20:37 +02:00
committed by Rusty Russell
parent f81db6fb47
commit 12e28c2554
3 changed files with 14 additions and 2 deletions

View File

@@ -21,6 +21,8 @@ struct plugin {
struct plugins *plugins;
const char **plugin_path;
bool configured;
/* If this plugin can be restarted without restarting lightningd */
bool dynamic;
/* Stuff we read */
char *buffer;