mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 10:30:08 +01:00
multiprocess: Expose Chain interface
Expose Chain interface to external processes spawning or connecting to bitcoin-node.
This commit is contained in:
parent
6c42cf41be
commit
4fa7f72cb9
2 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#ifndef BITCOIN_IPC_CAPNP_INIT_TYPES_H
|
||||
#define BITCOIN_IPC_CAPNP_INIT_TYPES_H
|
||||
|
||||
#include <ipc/capnp/chain.capnp.proxy-types.h>
|
||||
#include <ipc/capnp/echo.capnp.proxy-types.h>
|
||||
#include <ipc/capnp/mining.capnp.proxy-types.h>
|
||||
|
||||
|
|
|
@ -8,11 +8,13 @@ using Cxx = import "/capnp/c++.capnp";
|
|||
$Cxx.namespace("ipc::capnp::messages");
|
||||
|
||||
using Proxy = import "/mp/proxy.capnp";
|
||||
$Proxy.include("interfaces/chain.h");
|
||||
$Proxy.include("interfaces/echo.h");
|
||||
$Proxy.include("interfaces/init.h");
|
||||
$Proxy.include("interfaces/mining.h");
|
||||
$Proxy.includeTypes("ipc/capnp/init-types.h");
|
||||
|
||||
using Chain = import "chain.capnp";
|
||||
using Echo = import "echo.capnp";
|
||||
using Mining = import "mining.capnp";
|
||||
|
||||
|
@ -20,4 +22,5 @@ interface Init $Proxy.wrap("interfaces::Init") {
|
|||
construct @0 (threadMap: Proxy.ThreadMap) -> (threadMap :Proxy.ThreadMap);
|
||||
makeEcho @1 (context :Proxy.Context) -> (result :Echo.Echo);
|
||||
makeMining @2 (context :Proxy.Context) -> (result :Mining.Mining);
|
||||
makeChain @3 (context :Proxy.Context) -> (result :Chain.Chain);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue