init.capnp
1 # Copyright (c) 2021 The Bitcoin Core developers 2 # Distributed under the MIT software license, see the accompanying 3 # file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 5 @0xf2c5cfa319406aa6; 6 7 using Cxx = import "/capnp/c++.capnp"; 8 $Cxx.namespace("ipc::capnp::messages"); 9 10 using Proxy = import "/mp/proxy.capnp"; 11 $Proxy.include("interfaces/echo.h"); 12 $Proxy.include("interfaces/init.h"); 13 $Proxy.includeTypes("ipc/capnp/init-types.h"); 14 15 using Echo = import "echo.capnp"; 16 17 interface Init $Proxy.wrap("interfaces::Init") { 18 construct @0 (threadMap: Proxy.ThreadMap) -> (threadMap :Proxy.ThreadMap); 19 makeEcho @1 (context :Proxy.Context) -> (result :Echo.Echo); 20 }