blob: 5a8cfdcfceb05072e45826ae9ac036101155f8a8 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#pragma once
#include <fidl/test.driveroneway/cpp/driver/wire_messaging.h>
#include <fidl/test.driveroneway/cpp/markers.h>
#include <fidl/test.driveroneway/cpp/natural_types.h>
#include <lib/fidl_driver/cpp/natural_messaging.h>
#ifdef __Fuchsia__
#endif // __Fuchsia__
namespace test_driveroneway {
__LOCAL extern "C" const fidl_type_t test_driveroneway_OneWaySendRequestTable;
#ifdef __Fuchsia__
} // namespace test_driveroneway
template <>
class ::fidl::internal::NaturalClientImpl<::test_driveroneway::OneWay> final : public ::fidl::internal::NaturalClientBase {
public:
using NaturalClientBase::NaturalClientBase;
::fitx::result<::fidl::Error> Send(::fidl::Request<::test_driveroneway::OneWay::Send> request) const;
};
namespace test_driveroneway {
#endif // __Fuchsia__
} // namespace test_driveroneway
#ifdef __Fuchsia__
template <>
class ::fidl::internal::NaturalEventHandlerInterface<::test_driveroneway::OneWay> : public ::fidl::internal::BaseEventHandlerInterface {
public:
NaturalEventHandlerInterface() = default;
virtual ~NaturalEventHandlerInterface() = default;
};
template <>
class ::fdf::AsyncEventHandler<::test_driveroneway::OneWay>
: public ::fidl::internal::NaturalEventHandlerInterface<::test_driveroneway::OneWay>, public ::fidl::internal::AsyncEventHandler {
public:
AsyncEventHandler() = default;
};
template <>
class ::fidl::internal::NaturalEventDispatcher<::test_driveroneway::OneWay> final : public ::fidl::internal::IncomingEventDispatcher<::fidl::internal::NaturalEventHandlerInterface<::test_driveroneway::OneWay>> {
public:
explicit NaturalEventDispatcher(::fidl::internal::NaturalEventHandlerInterface<::test_driveroneway::OneWay>* event_handler)
: IncomingEventDispatcher(event_handler) {}
};
#endif // __Fuchsia__
#ifdef __Fuchsia__
template <>
class ::fidl::Request<::test_driveroneway::OneWay::Send> final : public ::test_driveroneway::OneWaySendRequest {
public:
using ::test_driveroneway::OneWaySendRequest::OneWaySendRequest;
Request(::test_driveroneway::OneWaySendRequest v) : ::test_driveroneway::OneWaySendRequest(std::move(v)) {}
};
template <>
struct ::fidl::internal::MessageTraits<::fidl::Request<::test_driveroneway::OneWay::Send>> final {
public:
static constexpr bool kHasPayload = true;
using Payload = ::test_driveroneway::OneWaySendRequest;
};
#endif // __Fuchsia__
template <>
class ::fdf::Server<::test_driveroneway::OneWay> : public ::fidl::internal::IncomingMessageDispatcher {
public:
Server() = default;
virtual ~Server() = default;
// The FIDL protocol type that is implemented by this server.
using _EnclosingProtocol = ::test_driveroneway::OneWay;
using SendRequest = ::fidl::Request<::test_driveroneway::OneWay::Send>;
using SendCompleter = ::fidl::internal::NaturalCompleter<::test_driveroneway::OneWay::Send>;
virtual void Send(SendRequest& request, SendCompleter::Sync& completer) = 0;
private:
void dispatch_message(
::fidl::IncomingMessage&& msg, ::fidl::Transaction* txn,
::fidl::internal::MessageStorageViewBase* storage_view) final;
};
#ifdef __Fuchsia__
template <>
struct ::fidl::internal::NaturalServerDispatcher<::test_driveroneway::OneWay> final {
NaturalServerDispatcher() = delete;
static void Dispatch(::fdf::Server<::test_driveroneway::OneWay>* impl, ::fidl::IncomingMessage&& msg,
internal::MessageStorageViewBase* storage_view,
::fidl::Transaction* txn);
private:
static const ::fidl::internal::MethodEntry entries_[];
static const ::fidl::internal::MethodEntry* entries_end_;
};
#endif // __Fuchsia__