| // WARNING: This file is machine generated by fidlgen. |
| |
| #pragma once |
| |
| #include <fidl/test.drivertwoway/cpp/natural_types.h> |
| #include <lib/fidl/cpp/hlcpp_conversion.h> |
| #include <lib/fidl/llcpp/internal/transport_channel.h> |
| #include <test/drivertwoway/cpp/fidl.h> |
| |
| namespace fidl { |
| namespace internal { |
| |
| template <> |
| struct NaturalToHLCPPTraits<::test_drivertwoway::TwoWayAddTopResponse> { |
| using HLCPPType = ::test::drivertwoway::TwoWayAddTopResponse; |
| static inline ::test::drivertwoway::TwoWayAddTopResponse Convert(::test_drivertwoway::TwoWayAddTopResponse&&); |
| }; |
| template <> |
| struct HLCPPToNaturalTraits<::test::drivertwoway::TwoWayAddTopResponse> { |
| using NaturalType = ::test_drivertwoway::TwoWayAddTopResponse; |
| static inline ::test_drivertwoway::TwoWayAddTopResponse Convert(::test::drivertwoway::TwoWayAddTopResponse&&); |
| }; |
| template <> |
| struct NaturalToHLCPPTraits<::test_drivertwoway::TwoWayAddRequest> { |
| using HLCPPType = ::test::drivertwoway::TwoWayAddRequest; |
| static inline ::test::drivertwoway::TwoWayAddRequest Convert(::test_drivertwoway::TwoWayAddRequest&&); |
| }; |
| template <> |
| struct HLCPPToNaturalTraits<::test::drivertwoway::TwoWayAddRequest> { |
| using NaturalType = ::test_drivertwoway::TwoWayAddRequest; |
| static inline ::test_drivertwoway::TwoWayAddRequest Convert(::test::drivertwoway::TwoWayAddRequest&&); |
| }; |
| |
| ::test::drivertwoway::TwoWayAddTopResponse NaturalToHLCPPTraits<::test_drivertwoway::TwoWayAddTopResponse>::Convert(::test_drivertwoway::TwoWayAddTopResponse&& value) { |
| ::test::drivertwoway::TwoWayAddTopResponse hlcpp; |
| hlcpp.sum = ::fidl::NaturalToHLCPP(std::move(value.sum())); |
| return hlcpp; |
| } |
| |
| ::test_drivertwoway::TwoWayAddTopResponse HLCPPToNaturalTraits<::test::drivertwoway::TwoWayAddTopResponse>::Convert(::test::drivertwoway::TwoWayAddTopResponse&& value) { |
| return ::test_drivertwoway::TwoWayAddTopResponse{{ |
| .sum = ::fidl::HLCPPToNatural(std::move(value.sum)), |
| }}; |
| } |
| ::test::drivertwoway::TwoWayAddRequest NaturalToHLCPPTraits<::test_drivertwoway::TwoWayAddRequest>::Convert(::test_drivertwoway::TwoWayAddRequest&& value) { |
| ::test::drivertwoway::TwoWayAddRequest hlcpp; |
| hlcpp.addend1 = ::fidl::NaturalToHLCPP(std::move(value.addend1())); |
| hlcpp.addend2 = ::fidl::NaturalToHLCPP(std::move(value.addend2())); |
| return hlcpp; |
| } |
| |
| ::test_drivertwoway::TwoWayAddRequest HLCPPToNaturalTraits<::test::drivertwoway::TwoWayAddRequest>::Convert(::test::drivertwoway::TwoWayAddRequest&& value) { |
| return ::test_drivertwoway::TwoWayAddRequest{{ |
| .addend1 = ::fidl::HLCPPToNatural(std::move(value.addend1)), |
| .addend2 = ::fidl::HLCPPToNatural(std::move(value.addend2)), |
| }}; |
| } |
| |
| } // namespace internal |
| } // namespace fidl |