lightningd: allow plugin commands and options to mark themselves deprecated.

This lets us handle it the same way we handle builtin commands, and also
lets us warn if they use deprecated apis and allow-deprecated-apis=false.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Plugins: can now mark their options and commands deprecated.
This commit is contained in:
Rusty Russell
2020-08-06 09:58:02 +09:30
parent 4ce8f56327
commit 7a7a849fc2
3 changed files with 45 additions and 8 deletions

View File

@@ -137,6 +137,7 @@ struct plugin_opt {
const char *type;
const char *description;
struct plugin_opt_value *value;
bool deprecated;
};
/**