aboutsummaryrefslogtreecommitdiff
path: root/src/test/ipc_test.capnp
blob: 46cd08b94a2a95852fafe99e347e2ec8b3554241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2023 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

@0xd71b0fc8727fdf83;

using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("gen");

using Proxy = import "/mp/proxy.capnp";
$Proxy.include("test/ipc_test.h");
$Proxy.includeTypes("test/ipc_test_types.h");

using Mining = import "../ipc/capnp/mining.capnp";

interface FooInterface $Proxy.wrap("FooImplementation") {
    add @0 (a :Int32, b :Int32) -> (result :Int32);
    passOutPoint @1 (arg :Data) -> (result :Data);
    passUniValue @2 (arg :Text) -> (result :Text);
    passTransaction @3 (arg :Data) -> (result :Data);
    passVectorChar @4 (arg :Data) -> (result :Data);
    passBlockState @5 (arg :Mining.BlockValidationState) -> (result :Mining.BlockValidationState);
}