mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
git-subtree-dir: src/ipc/libmultiprocess git-subtree-split: 35944ffd23fa26652b82210351d50e896ce16c8f
22 lines
905 B
Cap'n Proto
22 lines
905 B
Cap'n Proto
# Copyright (c) 2021 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
@0xba5a7448664901b1;
|
|
|
|
using Cxx = import "/capnp/c++.capnp";
|
|
using Proxy = import "/mp/proxy.capnp";
|
|
using Calculator = import "calculator.capnp";
|
|
using Printer = import "printer.capnp";
|
|
|
|
$Proxy.include("calculator.h");
|
|
$Proxy.include("init.h");
|
|
$Proxy.include("printer.h");
|
|
$Proxy.includeTypes("calculator.capnp.proxy-types.h");
|
|
$Proxy.includeTypes("printer.capnp.proxy-types.h");
|
|
|
|
interface InitInterface $Proxy.wrap("Init") {
|
|
construct @0 (threadMap: Proxy.ThreadMap) -> (threadMap :Proxy.ThreadMap);
|
|
makeCalculator @1 (context :Proxy.Context, print :Printer.PrinterInterface) -> (result :Calculator.CalculatorInterface);
|
|
makePrinter @2 (context :Proxy.Context) -> (result :Printer.PrinterInterface);
|
|
}
|