libplugin: make deprecated_apis a global

This commit is contained in:
darosior
2020-02-05 00:16:01 +01:00
committed by Rusty Russell
parent 02fe34ed95
commit b6b2e6727e
3 changed files with 7 additions and 5 deletions

View File

@@ -19,6 +19,8 @@
struct json_out;
struct rpc_conn;
extern bool deprecated_apis;
enum plugin_restartability {
PLUGIN_STATIC,
PLUGIN_RESTARTABLE
@@ -72,8 +74,6 @@ struct plugin {
/* Timers */
struct timers timers;
size_t in_timer;
bool deprecated_apis;
};
struct command {