mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
libplugin: don't expose the rpc_conn struct
This commit is contained in:
@@ -17,17 +17,13 @@
|
||||
#include <common/status_levels.h>
|
||||
|
||||
struct json_out;
|
||||
struct rpc_conn;
|
||||
|
||||
enum plugin_restartability {
|
||||
PLUGIN_STATIC,
|
||||
PLUGIN_RESTARTABLE
|
||||
};
|
||||
|
||||
struct rpc_conn {
|
||||
int fd;
|
||||
MEMBUF(char) mb;
|
||||
};
|
||||
|
||||
struct plugin {
|
||||
/* lightningd interaction */
|
||||
struct io_conn *stdin_conn;
|
||||
@@ -50,7 +46,7 @@ struct plugin {
|
||||
u64 next_outreq_id;
|
||||
|
||||
/* Synchronous RPC interaction */
|
||||
struct rpc_conn rpc_conn;
|
||||
struct rpc_conn *rpc_conn;
|
||||
|
||||
/* Plugin informations */
|
||||
enum plugin_restartability restartability;
|
||||
|
||||
Reference in New Issue
Block a user