aboutsummaryrefslogtreecommitdiff
path: root/src/ipc/protocol.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-12-05 15:57:12 -0500
committerRussell Yanofsky <russ@yanofsky.org>2021-06-10 09:58:45 -0500
commit3e33d170cc0a8f386791777f3cc597e2bd0bf2ee (patch)
tree88d34d1b4d5e2fd12e011be49b0aa9651eac224f /src/ipc/protocol.h
parent1704bbf2263f16c720604cfab4ccb775315df690 (diff)
downloadbitcoin-3e33d170cc0a8f386791777f3cc597e2bd0bf2ee.tar.xz
Add ipc::Context and ipc::capnp::Context structs
These are currently empty structs but they will be used to pass some function and object pointers from bitcoin application code to IPC hooks that run, for example, when a remote object is created or destroyed, or a new process is created.
Diffstat (limited to 'src/ipc/protocol.h')
-rw-r--r--src/ipc/protocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipc/protocol.h b/src/ipc/protocol.h
index af955b0007..4cd892e411 100644
--- a/src/ipc/protocol.h
+++ b/src/ipc/protocol.h
@@ -12,6 +12,8 @@
#include <typeindex>
namespace ipc {
+struct Context;
+
//! IPC protocol interface for calling IPC methods over sockets.
//!
//! There may be different implementations of this interface for different IPC
@@ -33,6 +35,9 @@ public:
//! Add cleanup callback to interface that will run when the interface is
//! deleted.
virtual void addCleanup(std::type_index type, void* iface, std::function<void()> cleanup) = 0;
+
+ //! Context accessor.
+ virtual Context& context() = 0;
};
} // namespace ipc