| // WARNING: This file is machine generated by fidlgen. |
| |
| // fidl_experiment = output_index_json |
| |
| #pragma once |
| |
| #include <fidl/test.bottom/cpp/hlcpp_conversion.h> |
| #include <fidl/test.foreigntypeinresponseusedthroughcompose/cpp/natural_types.h> |
| #include <fidl/test.middle/cpp/hlcpp_conversion.h> |
| #include <lib/fidl/cpp/hlcpp_conversion.h> |
| #include <lib/fidl/cpp/wire/service_handler.h> |
| #include <test/foreigntypeinresponseusedthroughcompose/cpp/fidl.h> |
| |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wshadow" |
| |
| namespace fidl { |
| namespace internal { |
| |
| template <> |
| struct NaturalToHLCPPTraits<fidl::ClientEnd<::test_foreigntypeinresponseusedthroughcompose::Top>> { |
| using HLCPPType = fidl::InterfaceHandle<::test::foreigntypeinresponseusedthroughcompose::Top>; |
| static inline fidl::InterfaceHandle<::test::foreigntypeinresponseusedthroughcompose::Top> Convert(fidl::ClientEnd<::test_foreigntypeinresponseusedthroughcompose::Top>&& c) { |
| return fidl::InterfaceHandle<::test::foreigntypeinresponseusedthroughcompose::Top>(c.TakeChannel()); |
| } |
| }; |
| |
| template <> |
| struct NaturalToHLCPPTraits<fidl::ServerEnd<::test_foreigntypeinresponseusedthroughcompose::Top>> { |
| using HLCPPType = fidl::InterfaceRequest<::test::foreigntypeinresponseusedthroughcompose::Top>; |
| static inline fidl::InterfaceRequest<::test::foreigntypeinresponseusedthroughcompose::Top> Convert(fidl::ServerEnd<::test_foreigntypeinresponseusedthroughcompose::Top>&& c) { |
| return fidl::InterfaceRequest<::test::foreigntypeinresponseusedthroughcompose::Top>(c.TakeChannel()); |
| } |
| }; |
| |
| template <> |
| struct HLCPPToNaturalTraits<fidl::InterfaceHandle<::test::foreigntypeinresponseusedthroughcompose::Top>> { |
| using NaturalType = fidl::ClientEnd<::test_foreigntypeinresponseusedthroughcompose::Top>; |
| static inline fidl::ClientEnd<::test_foreigntypeinresponseusedthroughcompose::Top> Convert(fidl::InterfaceHandle<::test::foreigntypeinresponseusedthroughcompose::Top>&& c) { |
| return fidl::ClientEnd<::test_foreigntypeinresponseusedthroughcompose::Top>(c.TakeChannel()); |
| } |
| }; |
| |
| template <> |
| struct HLCPPToNaturalTraits<fidl::InterfaceRequest<::test::foreigntypeinresponseusedthroughcompose::Top>> { |
| using NaturalType = fidl::ServerEnd<::test_foreigntypeinresponseusedthroughcompose::Top>; |
| static inline fidl::ServerEnd<::test_foreigntypeinresponseusedthroughcompose::Top> Convert(fidl::InterfaceRequest<::test::foreigntypeinresponseusedthroughcompose::Top>&& c) { |
| return fidl::ServerEnd<::test_foreigntypeinresponseusedthroughcompose::Top>(c.TakeChannel()); |
| } |
| }; |
| |
| template <> |
| struct NaturalToHLCPPTraits<fidl::ProtocolHandler<::test_foreigntypeinresponseusedthroughcompose::Top>> { |
| using HLCPPType = fidl::InterfaceRequestHandler<::test::foreigntypeinresponseusedthroughcompose::Top>; |
| static inline fidl::InterfaceRequestHandler<::test::foreigntypeinresponseusedthroughcompose::Top> Convert(fidl::ProtocolHandler<::test_foreigntypeinresponseusedthroughcompose::Top>&& c) { |
| return [c = std::move(c)](fidl::InterfaceRequest<::test::foreigntypeinresponseusedthroughcompose::Top> r) { |
| c(::fidl::HLCPPToNatural(r)); |
| }; |
| } |
| }; |
| |
| template <> |
| struct HLCPPToNaturalTraits<fidl::InterfaceRequestHandler<::test::foreigntypeinresponseusedthroughcompose::Top>> { |
| using NaturalType = fidl::ProtocolHandler<::test_foreigntypeinresponseusedthroughcompose::Top>; |
| static inline fidl::ProtocolHandler<::test_foreigntypeinresponseusedthroughcompose::Top> Convert(fidl::InterfaceRequestHandler<::test::foreigntypeinresponseusedthroughcompose::Top>&& c) { |
| return [c = std::move(c)](fidl::ServerEnd<::test_foreigntypeinresponseusedthroughcompose::Top> r) { |
| c(::fidl::NaturalToHLCPP(r)); |
| }; |
| } |
| }; |
| |
| #pragma clang diagnostic pop |
| |
| } // namespace internal |
| } // namespace fidl |