| // WARNING: This file is machine generated by fidlgen_llcpp. |
| |
| #pragma once |
| |
| #include <fidl/test.service/cpp/markers.h> |
| #include <fidl/test.service/cpp/natural_types.h> |
| #include <fidl/test.service/cpp/wire_messaging.h> |
| #include <lib/fidl/cpp/channel.h> |
| #include <lib/fidl/cpp/client.h> |
| #include <lib/fidl/cpp/internal/thenable.h> |
| #include <lib/fidl/cpp/natural_types.h> |
| #include <lib/fidl/cpp/unified_messaging.h> |
| |
| namespace fidl { |
| |
| #ifdef __Fuchsia__ |
| } // namespace fidl |
| template <> |
| class ::fidl::internal::NaturalClientImpl<::test_service::SecondProtocol> final |
| : public ::fidl::internal::NaturalClientBase { |
| public: |
| using NaturalClientBase::NaturalClientBase; |
| ::fitx::result<::fidl::Error> MethodOnSecond() const; |
| }; |
| namespace fidl { |
| #endif // __Fuchsia__ |
| |
| } // namespace fidl |
| #ifdef __Fuchsia__ |
| |
| template <> |
| class ::fidl::internal::NaturalEventHandlerInterface< |
| ::test_service::SecondProtocol> { |
| public: |
| NaturalEventHandlerInterface() = default; |
| virtual ~NaturalEventHandlerInterface() = default; |
| }; |
| |
| template <> |
| class ::fidl::AsyncEventHandler<::test_service::SecondProtocol> |
| : public ::fidl::internal::NaturalEventHandlerInterface< |
| ::test_service::SecondProtocol>, |
| public ::fidl::internal::AsyncEventHandler { |
| public: |
| AsyncEventHandler() = default; |
| }; |
| |
| template <> |
| class ::fidl::internal::NaturalEventDispatcher<::test_service::SecondProtocol> |
| final : public ::fidl::internal::IncomingEventDispatcher< |
| ::fidl::AsyncEventHandler<::test_service::SecondProtocol>> { |
| public: |
| explicit NaturalEventDispatcher( |
| ::fidl::AsyncEventHandler<::test_service::SecondProtocol>* event_handler) |
| : IncomingEventDispatcher(event_handler) {} |
| |
| private: |
| std::optional<::fidl::UnbindInfo> DispatchEvent( |
| ::fidl::IncomingMessage& msg, |
| internal::IncomingTransportContext transport_context) override; |
| }; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| template <> |
| class ::fidl::internal::NaturalWeakEventSender<::test_service::SecondProtocol> |
| : public ::fidl::internal::WeakEventSenderBase { |
| public: |
| using WeakEventSenderBase::WeakEventSenderBase; |
| }; |
| |
| template <> |
| class ::fidl::internal::NaturalEventSender<::test_service::SecondProtocol> |
| : public ::fidl::internal::SyncEndpointManagedVeneer< |
| ::fidl::internal::NaturalEventSender< |
| ::test_service::SecondProtocol>> { |
| public: |
| using SyncEndpointManagedVeneer::SyncEndpointManagedVeneer; |
| }; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| template <> |
| class ::fidl::Request<::test_service::SecondProtocol::MethodOnSecond> final { |
| public: |
| }; |
| |
| template <> |
| struct ::fidl::internal::MessageTraits< |
| ::fidl::Request<::test_service::SecondProtocol::MethodOnSecond>> |
| final { |
| public: |
| static constexpr bool kHasPayload = false; |
| }; |
| #endif // __Fuchsia__ |
| |
| template <> |
| class ::fidl::Server<::test_service::SecondProtocol> |
| : public ::fidl::internal::IncomingMessageDispatcher { |
| public: |
| Server() = default; |
| virtual ~Server() = default; |
| |
| // The FIDL protocol type that is implemented by this server. |
| using _EnclosingProtocol = ::test_service::SecondProtocol; |
| |
| using MethodOnSecondRequest = |
| ::fidl::Request<::test_service::SecondProtocol::MethodOnSecond>; |
| using MethodOnSecondCompleter = ::fidl::internal::NaturalCompleter< |
| ::test_service::SecondProtocol::MethodOnSecond>; |
| |
| virtual void MethodOnSecond(MethodOnSecondRequest& request, |
| MethodOnSecondCompleter::Sync& completer) = 0; |
| |
| private: |
| void dispatch_message( |
| ::fidl::IncomingMessage&& msg, ::fidl::Transaction* txn, |
| ::fidl::internal::IncomingTransportContext transport_context) final; |
| }; |
| |
| #ifdef __Fuchsia__ |
| |
| template <> |
| struct ::fidl::internal::NaturalServerDispatcher<::test_service::SecondProtocol> |
| final { |
| NaturalServerDispatcher() = delete; |
| static void Dispatch(::fidl::Server<::test_service::SecondProtocol>* impl, |
| ::fidl::IncomingMessage&& msg, |
| internal::IncomingTransportContext transport_context, |
| ::fidl::Transaction* txn); |
| |
| private: |
| static const ::fidl::internal::MethodEntry entries_[]; |
| static const ::fidl::internal::MethodEntry* entries_end_; |
| }; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| template <> |
| class ::fidl::internal::NaturalClientImpl<::test_service::FirstProtocol> final |
| : public ::fidl::internal::NaturalClientBase { |
| public: |
| using NaturalClientBase::NaturalClientBase; |
| ::fitx::result<::fidl::Error> MethodOnFirst() const; |
| }; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| template <> |
| class ::fidl::internal::NaturalEventHandlerInterface< |
| ::test_service::FirstProtocol> { |
| public: |
| NaturalEventHandlerInterface() = default; |
| virtual ~NaturalEventHandlerInterface() = default; |
| }; |
| |
| template <> |
| class ::fidl::AsyncEventHandler<::test_service::FirstProtocol> |
| : public ::fidl::internal::NaturalEventHandlerInterface< |
| ::test_service::FirstProtocol>, |
| public ::fidl::internal::AsyncEventHandler { |
| public: |
| AsyncEventHandler() = default; |
| }; |
| |
| template <> |
| class ::fidl::internal::NaturalEventDispatcher<::test_service::FirstProtocol> |
| final : public ::fidl::internal::IncomingEventDispatcher< |
| ::fidl::AsyncEventHandler<::test_service::FirstProtocol>> { |
| public: |
| explicit NaturalEventDispatcher( |
| ::fidl::AsyncEventHandler<::test_service::FirstProtocol>* event_handler) |
| : IncomingEventDispatcher(event_handler) {} |
| |
| private: |
| std::optional<::fidl::UnbindInfo> DispatchEvent( |
| ::fidl::IncomingMessage& msg, |
| internal::IncomingTransportContext transport_context) override; |
| }; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| template <> |
| class ::fidl::internal::NaturalWeakEventSender<::test_service::FirstProtocol> |
| : public ::fidl::internal::WeakEventSenderBase { |
| public: |
| using WeakEventSenderBase::WeakEventSenderBase; |
| }; |
| |
| template <> |
| class ::fidl::internal::NaturalEventSender<::test_service::FirstProtocol> |
| : public ::fidl::internal::SyncEndpointManagedVeneer< |
| ::fidl::internal::NaturalEventSender<::test_service::FirstProtocol>> { |
| public: |
| using SyncEndpointManagedVeneer::SyncEndpointManagedVeneer; |
| }; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| template <> |
| class ::fidl::Request<::test_service::FirstProtocol::MethodOnFirst> final { |
| public: |
| }; |
| |
| template <> |
| struct ::fidl::internal::MessageTraits< |
| ::fidl::Request<::test_service::FirstProtocol::MethodOnFirst>> |
| final { |
| public: |
| static constexpr bool kHasPayload = false; |
| }; |
| #endif // __Fuchsia__ |
| |
| template <> |
| class ::fidl::Server<::test_service::FirstProtocol> |
| : public ::fidl::internal::IncomingMessageDispatcher { |
| public: |
| Server() = default; |
| virtual ~Server() = default; |
| |
| // The FIDL protocol type that is implemented by this server. |
| using _EnclosingProtocol = ::test_service::FirstProtocol; |
| |
| using MethodOnFirstRequest = |
| ::fidl::Request<::test_service::FirstProtocol::MethodOnFirst>; |
| using MethodOnFirstCompleter = ::fidl::internal::NaturalCompleter< |
| ::test_service::FirstProtocol::MethodOnFirst>; |
| |
| virtual void MethodOnFirst(MethodOnFirstRequest& request, |
| MethodOnFirstCompleter::Sync& completer) = 0; |
| |
| private: |
| void dispatch_message( |
| ::fidl::IncomingMessage&& msg, ::fidl::Transaction* txn, |
| ::fidl::internal::IncomingTransportContext transport_context) final; |
| }; |
| |
| #ifdef __Fuchsia__ |
| |
| template <> |
| struct ::fidl::internal::NaturalServerDispatcher<::test_service::FirstProtocol> |
| final { |
| NaturalServerDispatcher() = delete; |
| static void Dispatch(::fidl::Server<::test_service::FirstProtocol>* impl, |
| ::fidl::IncomingMessage&& msg, |
| internal::IncomingTransportContext transport_context, |
| ::fidl::Transaction* txn); |
| |
| private: |
| static const ::fidl::internal::MethodEntry entries_[]; |
| static const ::fidl::internal::MethodEntry* entries_end_; |
| }; |
| #endif // __Fuchsia__ |