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/util.h>
18 : : #include <string>
19 : : #include <vector>
20 : : #include <mp/proxy-types.h>
21 : : // IWYU pragma: end_keep
22 : :
23 : : namespace mp {
24 : 1 : ProxyClient<gen::FooInterface>::M0::Result ProxyClient<gen::FooInterface>::add(M0::Param<0> a,M0::Param<1> b) {
25 : 1 : typename M0::Result result;
26 : 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));
27 : 1 : return result;
28 : : }
29 : 1 : ProxyClient<gen::FooInterface>::M1::Result ProxyClient<gen::FooInterface>::passOutPoint(M1::Param<0> arg) {
30 : 1 : typename M1::Result result;
31 : 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));
32 : 1 : return result;
33 : : }
34 : 1 : ProxyClient<gen::FooInterface>::M2::Result ProxyClient<gen::FooInterface>::passUniValue(M2::Param<0> arg) {
35 [ + - ]: 1 : typename M2::Result result;
36 [ + - ]: 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));
37 : 1 : return result;
38 : 0 : }
39 : 1 : ProxyClient<gen::FooInterface>::M3::Result ProxyClient<gen::FooInterface>::passTransaction(M3::Param<0> arg) {
40 : 1 : typename M3::Result result;
41 [ + - ]: 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));
42 : 1 : return result;
43 : 0 : }
44 : 1 : ProxyClient<gen::FooInterface>::M4::Result ProxyClient<gen::FooInterface>::passVectorChar(M4::Param<0> arg) {
45 : 1 : typename M4::Result result;
46 [ + - ]: 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));
47 : 1 : return result;
48 : 0 : }
49 : 1 : ProxyClient<gen::FooInterface>::M5::Result ProxyClient<gen::FooInterface>::passScript(M5::Param<0> arg) {
50 : 1 : typename M5::Result result;
51 [ + - ]: 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));
52 : 1 : return result;
53 : 0 : }
54 : 1 : ProxyClient<gen::FooInterface>::M6::Result ProxyClient<gen::FooInterface>::passTransactions(M6::Param<0> arg) {
55 : 1 : typename M6::Result result;
56 [ + - ]: 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));
57 : 1 : return result;
58 : 0 : }
59 : : namespace {
60 : : ProxyTypeRegister t11175330607535746770{TypeList<FooImplementation>{}};
61 : : } // namespace
62 : : } // namespace mp
|