mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user