mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
lightningd: remove deprecated_apis global, put into lightningd.
We usually have access to `ld`, so avoid the global. The only place generic code needs it is for the json command struct, and that already has accessors: add one for libplugin and lightningd to tell it if deprecated apis are OK. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -36,6 +36,9 @@ command_fail_badparam(struct command *cmd,
|
||||
/* Also caller supplied: is this invoked simply to get usage? */
|
||||
bool command_usage_only(const struct command *cmd);
|
||||
|
||||
/* Do we allow deprecated apis? */
|
||||
bool command_deprecated_apis(const struct command *cmd);
|
||||
|
||||
/* If so, this is called. */
|
||||
void command_set_usage(struct command *cmd, const char *usage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user