Branch data Line data Source code
1 : : // Generated by mpgen from /__w/b-c-cov/b-c-cov/bitcoin-core/src/ipc/test/ipc_test.capnp
2 : :
3 : : // IWYU pragma: no_include <kj/memory.h>
4 : : // IWYU pragma: no_include <memory>
5 : : // IWYU pragma: begin_keep
6 : : #include <test/ipc_test.capnp.h>
7 : : #include <test/ipc_test.capnp.proxy.h>
8 : : #include <test/ipc_test.capnp.proxy-types.h>
9 : : #include <capnp/capability.h>
10 : : #include <capnp/common.h>
11 : : #include <capnp/generated-header-support.h>
12 : : #include <cstring>
13 : : #include <functional>
14 : : #include <kj/common.h>
15 : : #include <map>
16 : : #include <mp/proxy.h>
17 : : #include <mp/proxy-io.h>
18 : : #include <mp/util.h>
19 : : #include <string>
20 : : #include <vector>
21 : : #include <mp/proxy-types.h>
22 : : // IWYU pragma: end_keep
23 : :
24 : : namespace mp {
25 : 1 : ProxyClient<gen::FooInterface>::M0::Result ProxyClient<gen::FooInterface>::add(M0::Param<0> a,M0::Param<1> b) {
26 : 1 : typename M0::Result result;
27 : 1 : clientInvoke(*this, &gen::FooInterface::Client::addRequest, MakeClientParam<Accessor<ipc_test_fields::A, FIELD_IN>>(M0::Fwd<0>(a)), MakeClientParam<Accessor<ipc_test_fields::B, FIELD_IN>>(M0::Fwd<1>(b)), MakeClientParam<Accessor<ipc_test_fields::Result, FIELD_OUT>>(result));
28 : 1 : return result;
29 : : }
30 : 1 : ProxyClient<gen::FooInterface>::M1::Result ProxyClient<gen::FooInterface>::passOutPoint(M1::Param<0> arg) {
31 : 1 : typename M1::Result result;
32 : 1 : clientInvoke(*this, &gen::FooInterface::Client::passOutPointRequest, MakeClientParam<Accessor<ipc_test_fields::Arg, FIELD_IN | FIELD_BOXED>>(M1::Fwd<0>(arg)), MakeClientParam<Accessor<ipc_test_fields::Result, FIELD_OUT | FIELD_BOXED>>(result));
33 : 1 : return result;
34 : : }
35 : 1 : ProxyClient<gen::FooInterface>::M2::Result ProxyClient<gen::FooInterface>::passUniValue(M2::Param<0> arg) {
36 [ + - ]: 1 : typename M2::Result result;
37 [ + - ]: 1 : clientInvoke(*this, &gen::FooInterface::Client::passUniValueRequest, MakeClientParam<Accessor<ipc_test_fields::Arg, FIELD_IN | FIELD_BOXED>>(M2::Fwd<0>(arg)), MakeClientParam<Accessor<ipc_test_fields::Result, FIELD_OUT | FIELD_BOXED>>(result));
38 : 1 : return result;
39 : 0 : }
40 : 1 : ProxyClient<gen::FooInterface>::M3::Result ProxyClient<gen::FooInterface>::passTransaction(M3::Param<0> arg) {
41 : 1 : typename M3::Result result;
42 [ + - ]: 1 : clientInvoke(*this, &gen::FooInterface::Client::passTransactionRequest, MakeClientParam<Accessor<ipc_test_fields::Arg, FIELD_IN | FIELD_BOXED>>(M3::Fwd<0>(arg)), MakeClientParam<Accessor<ipc_test_fields::Result, FIELD_OUT | FIELD_BOXED>>(result));
43 : 1 : return result;
44 : 0 : }
45 : 1 : ProxyClient<gen::FooInterface>::M4::Result ProxyClient<gen::FooInterface>::passVectorChar(M4::Param<0> arg) {
46 : 1 : typename M4::Result result;
47 [ + - ]: 1 : clientInvoke(*this, &gen::FooInterface::Client::passVectorCharRequest, MakeClientParam<Accessor<ipc_test_fields::Arg, FIELD_IN | FIELD_BOXED>>(M4::Fwd<0>(arg)), MakeClientParam<Accessor<ipc_test_fields::Result, FIELD_OUT | FIELD_BOXED>>(result));
48 : 1 : return result;
49 : 0 : }
50 : 1 : ProxyClient<gen::FooInterface>::M5::Result ProxyClient<gen::FooInterface>::passScript(M5::Param<0> arg) {
51 : 1 : typename M5::Result result;
52 [ + - ]: 1 : clientInvoke(*this, &gen::FooInterface::Client::passScriptRequest, MakeClientParam<Accessor<ipc_test_fields::Arg, FIELD_IN | FIELD_BOXED>>(M5::Fwd<0>(arg)), MakeClientParam<Accessor<ipc_test_fields::Result, FIELD_OUT | FIELD_BOXED>>(result));
53 : 1 : return result;
54 : 0 : }
55 : 1 : ProxyClient<gen::FooInterface>::M6::Result ProxyClient<gen::FooInterface>::passTransactions(M6::Param<0> arg) {
56 : 1 : typename M6::Result result;
57 [ + - ]: 1 : clientInvoke(*this, &gen::FooInterface::Client::passTransactionsRequest, MakeClientParam<Accessor<ipc_test_fields::Arg, FIELD_IN | FIELD_BOXED>>(M6::Fwd<0>(arg)), MakeClientParam<Accessor<ipc_test_fields::Result, FIELD_OUT | FIELD_BOXED>>(result));
58 : 1 : return result;
59 : 0 : }
60 : : namespace {
61 : : ProxyTypeRegister t11175330607535746770{TypeList<FooImplementation>{}};
62 : : } // namespace
63 : : } // namespace mp
|