/tmp/bitcoin/build/src/ipc/capnp/common.capnp.proxy-types.h
Line | Count | Source |
1 | | // Generated by mpgen from /tmp/bitcoin/src/ipc/capnp/common.capnp |
2 | | |
3 | | #ifndef CAPNP_COMMON_CAPNP_PROXY_TYPES_H |
4 | | #define CAPNP_COMMON_CAPNP_PROXY_TYPES_H |
5 | | |
6 | | // IWYU pragma: no_include "mp/proxy.h" |
7 | | #include <mp/proxy.h> // IWYU pragma: keep |
8 | | #include <capnp/common.capnp.proxy.h> // IWYU pragma: keep |
9 | | #include "ipc/capnp/common-types.h" // IWYU pragma: export |
10 | | namespace mp { |
11 | | template<> |
12 | | struct ProxyType<interfaces::BlockRef> |
13 | | { |
14 | | public: |
15 | | using Struct = ipc::capnp::messages::BlockRef; |
16 | 0 | static decltype(auto) get(std::integral_constant<size_t, 0>) { return &interfaces::BlockRef::hash; } |
17 | 0 | static decltype(auto) get(std::integral_constant<size_t, 1>) { return &interfaces::BlockRef::height; } |
18 | | static constexpr size_t fields = 2; |
19 | | }; |
20 | | } // namespace mp |
21 | | #endif |