blob: 2b06192effc4f879032fd5dfd2a5eb51c27b28b9 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#include <fidl/test/protocolrequest/llcpp/fidl.h>
#include <memory>
namespace llcpp {
namespace fidl {
namespace test {
namespace protocolrequest {
namespace {
[[maybe_unused]] constexpr uint64_t kParent_GetChild_Ordinal =
7929845654914578302lu;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentGetChildRequestTable;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentGetChildResponseTable;
[[maybe_unused]] constexpr uint64_t kParent_GetChildRequest_Ordinal =
1819029190665166744lu;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentGetChildRequestRequestTable;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentGetChildRequestResponseTable;
[[maybe_unused]] constexpr uint64_t kParent_TakeChild_Ordinal =
374110854839013230lu;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentTakeChildRequestTable;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentTakeChildResponseTable;
[[maybe_unused]] constexpr uint64_t kParent_TakeChildRequest_Ordinal =
1574820689302890956lu;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentTakeChildRequestRequestTable;
extern "C" const fidl_type_t
fidl_test_protocolrequest_ParentTakeChildRequestResponseTable;
} // namespace
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::GetChild::GetChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client) {
::fidl::internal::EncodedMessageTypes<GetChildRequest>::OwnedByte _request(
zx_txid_t(0));
_request.GetOutgoingMessage().Call<GetChildResponse>(
_client, bytes_,
GetChildResponse::PrimarySize + GetChildResponse::MaxOutOfLine);
status_ = _request.status();
error_ = _request.error();
}
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::GetChild::GetChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
zx_time_t _deadline) {
::fidl::internal::EncodedMessageTypes<GetChildRequest>::OwnedByte _request(
zx_txid_t(0));
_request.GetOutgoingMessage().Call<GetChildResponse>(
_client, bytes_,
GetChildResponse::PrimarySize + GetChildResponse::MaxOutOfLine,
_deadline);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::GetChild::
GetChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
uint8_t* _response_bytes, uint32_t _response_byte_capacity)
: bytes_(_response_bytes) {
::fidl::internal::EncodedMessageTypes<GetChildRequest>::OwnedByte _request(
zx_txid_t(0));
_request.GetOutgoingMessage().Call<GetChildResponse>(_client, _response_bytes,
_response_byte_capacity);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::GetChildRequest::
GetChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client) {
::fidl::internal::EncodedMessageTypes<GetChildRequestRequest>::OwnedByte
_request(zx_txid_t(0));
_request.GetOutgoingMessage().Call<GetChildRequestResponse>(
_client, bytes_,
GetChildRequestResponse::PrimarySize +
GetChildRequestResponse::MaxOutOfLine);
status_ = _request.status();
error_ = _request.error();
}
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::GetChildRequest::
GetChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
zx_time_t _deadline) {
::fidl::internal::EncodedMessageTypes<GetChildRequestRequest>::OwnedByte
_request(zx_txid_t(0));
_request.GetOutgoingMessage().Call<GetChildRequestResponse>(
_client, bytes_,
GetChildRequestResponse::PrimarySize +
GetChildRequestResponse::MaxOutOfLine,
_deadline);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::GetChildRequest::
GetChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
uint8_t* _response_bytes, uint32_t _response_byte_capacity)
: bytes_(_response_bytes) {
::fidl::internal::EncodedMessageTypes<GetChildRequestRequest>::OwnedByte
_request(zx_txid_t(0));
_request.GetOutgoingMessage().Call<GetChildRequestResponse>(
_client, _response_bytes, _response_byte_capacity);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::TakeChild::TakeChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
::fidl::ClientEnd<::llcpp::fidl::test::protocolrequest::Child>& c) {
::fidl::internal::EncodedMessageTypes<TakeChildRequest>::OwnedByte _request(
zx_txid_t(0), c);
_request.GetOutgoingMessage().Write(_client);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::TakeChild::
TakeChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
uint8_t* _request_bytes, uint32_t _request_byte_capacity,
::fidl::ClientEnd<::llcpp::fidl::test::protocolrequest::Child>& c) {
::fidl::internal::EncodedMessageTypes<TakeChildRequest>::UnownedByte _request(
_request_bytes, _request_byte_capacity, 0, c);
_request.GetOutgoingMessage().Write(_client);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::TakeChildRequest::
TakeChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
::fidl::ServerEnd<::llcpp::fidl::test::protocolrequest::Child>& r) {
::fidl::internal::EncodedMessageTypes<TakeChildRequestRequest>::OwnedByte
_request(zx_txid_t(0), r);
_request.GetOutgoingMessage().Write(_client);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::
TakeChildRequest::TakeChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>
_client,
uint8_t* _request_bytes, uint32_t _request_byte_capacity,
::fidl::ServerEnd<::llcpp::fidl::test::protocolrequest::Child>& r) {
::fidl::internal::EncodedMessageTypes<TakeChildRequestRequest>::UnownedByte
_request(_request_bytes, _request_byte_capacity, 0, r);
_request.GetOutgoingMessage().Write(_client);
status_ = _request.status();
error_ = _request.error();
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::GetChild
Parent::ClientImpl::GetChild_Sync() {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
return ResultOf::GetChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()));
}
return ::llcpp::fidl::test::protocolrequest::Parent::ResultOf::GetChild(
::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound));
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::GetChild
Parent::ClientImpl::GetChild_Sync(::fidl::BufferSpan _response_buffer) {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
return UnownedResultOf::GetChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()),
_response_buffer.data, _response_buffer.capacity);
}
return ::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::
GetChild(::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound));
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::GetChildResponseContext::
GetChildResponseContext()
: ::fidl::internal::ResponseContext(GetChildResponse::Type,
kParent_GetChild_Ordinal) {}
void ::llcpp::fidl::test::protocolrequest::Parent::GetChildResponseContext::
OnReply(uint8_t* reply) {
OnReply(reinterpret_cast<GetChildResponse*>(reply));
}
::fidl::Result Parent::ClientImpl::GetChild(
::fit::callback<void(GetChildResponse* response)> _cb) {
class ResponseContext final : public GetChildResponseContext {
public:
ResponseContext(::fit::callback<void(GetChildResponse* response)> cb)
: cb_(std::move(cb)) {}
void OnReply(GetChildResponse* response) override {
cb_(response);
response->_CloseHandles();
delete this;
}
void OnError() override { delete this; }
private:
::fit::callback<void(GetChildResponse* response)> cb_;
};
auto* _context = new ResponseContext(std::move(_cb));
::fidl::internal::ClientBase::PrepareAsyncTxn(_context);
GetChildRequest::OwnedEncodedMessage _request(_context->Txid());
return _request.GetOutgoingMessage().Write(this, _context);
}
::fidl::Result Parent::ClientImpl::GetChild(GetChildResponseContext* _context) {
::fidl::internal::ClientBase::PrepareAsyncTxn(_context);
GetChildRequest::OwnedEncodedMessage _request(_context->Txid());
return _request.GetOutgoingMessage().Write(this, _context);
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::ResultOf::GetChildRequest
Parent::ClientImpl::GetChildRequest_Sync() {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
return ResultOf::GetChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()));
}
return ::llcpp::fidl::test::protocolrequest::Parent::ResultOf::
GetChildRequest(
::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound));
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::GetChildRequest
Parent::ClientImpl::GetChildRequest_Sync(::fidl::BufferSpan _response_buffer) {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
return UnownedResultOf::GetChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()),
_response_buffer.data, _response_buffer.capacity);
}
return ::llcpp::fidl::test::protocolrequest::Parent::UnownedResultOf::
GetChildRequest(
::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound));
}
#endif
#ifdef __Fuchsia__
::llcpp::fidl::test::protocolrequest::Parent::GetChildRequestResponseContext::
GetChildRequestResponseContext()
: ::fidl::internal::ResponseContext(GetChildRequestResponse::Type,
kParent_GetChildRequest_Ordinal) {}
void ::llcpp::fidl::test::protocolrequest::Parent::
GetChildRequestResponseContext::OnReply(uint8_t* reply) {
OnReply(reinterpret_cast<GetChildRequestResponse*>(reply));
}
::fidl::Result Parent::ClientImpl::GetChildRequest(
::fit::callback<void(GetChildRequestResponse* response)> _cb) {
class ResponseContext final : public GetChildRequestResponseContext {
public:
ResponseContext(::fit::callback<void(GetChildRequestResponse* response)> cb)
: cb_(std::move(cb)) {}
void OnReply(GetChildRequestResponse* response) override {
cb_(response);
response->_CloseHandles();
delete this;
}
void OnError() override { delete this; }
private:
::fit::callback<void(GetChildRequestResponse* response)> cb_;
};
auto* _context = new ResponseContext(std::move(_cb));
::fidl::internal::ClientBase::PrepareAsyncTxn(_context);
GetChildRequestRequest::OwnedEncodedMessage _request(_context->Txid());
return _request.GetOutgoingMessage().Write(this, _context);
}
::fidl::Result Parent::ClientImpl::GetChildRequest(
GetChildRequestResponseContext* _context) {
::fidl::internal::ClientBase::PrepareAsyncTxn(_context);
GetChildRequestRequest::OwnedEncodedMessage _request(_context->Txid());
return _request.GetOutgoingMessage().Write(this, _context);
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::ClientImpl::TakeChild(
::fidl::ClientEnd<::llcpp::fidl::test::protocolrequest::Child> c) {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
auto _res = ResultOf::TakeChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()),
c);
return ::fidl::Result(_res.status(), _res.error());
}
return ::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound);
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::ClientImpl::TakeChild(
::fidl::BufferSpan _request_buffer,
::fidl::ClientEnd<::llcpp::fidl::test::protocolrequest::Child> c) {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
auto _res = UnownedResultOf::TakeChild(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()),
_request_buffer.data, _request_buffer.capacity, c);
return ::fidl::Result(_res.status(), _res.error());
}
return ::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound);
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::ClientImpl::TakeChildRequest(
::fidl::ServerEnd<::llcpp::fidl::test::protocolrequest::Child> r) {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
auto _res = ResultOf::TakeChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()),
r);
return ::fidl::Result(_res.status(), _res.error());
}
return ::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound);
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::ClientImpl::TakeChildRequest(
::fidl::BufferSpan _request_buffer,
::fidl::ServerEnd<::llcpp::fidl::test::protocolrequest::Child> r) {
if (auto _channel = ::fidl::internal::ClientBase::GetChannel()) {
auto _res = UnownedResultOf::TakeChildRequest(
::fidl::UnownedClientEnd<::llcpp::fidl::test::protocolrequest::Parent>(
_channel->handle()),
_request_buffer.data, _request_buffer.capacity, r);
return ::fidl::Result(_res.status(), _res.error());
}
return ::fidl::Result(ZX_ERR_CANCELED, ::fidl::kErrorChannelUnbound);
}
#endif
#ifdef __Fuchsia__
std::optional<::fidl::UnbindInfo> Parent::ClientImpl::DispatchEvent(
fidl_incoming_msg_t* msg) {
FidlHandleInfoCloseMany(msg->handles, msg->num_handles);
return ::fidl::UnbindInfo{::fidl::UnbindInfo::kUnexpectedMessage,
ZX_ERR_NOT_SUPPORTED};
}
#endif
#ifdef __Fuchsia__
namespace methods {
void ParentDispatchGetChild(void* interface, void* bytes,
::fidl::Transaction* txn) {
::llcpp::fidl::test::protocolrequest::Parent::Interface::GetChildCompleter::
Sync completer(txn);
reinterpret_cast<::llcpp::fidl::test::protocolrequest::Parent::Interface*>(
interface)
->GetChild(completer);
}
void ParentDispatchGetChildRequest(void* interface, void* bytes,
::fidl::Transaction* txn) {
::llcpp::fidl::test::protocolrequest::Parent::Interface::
GetChildRequestCompleter::Sync completer(txn);
reinterpret_cast<::llcpp::fidl::test::protocolrequest::Parent::Interface*>(
interface)
->GetChildRequest(completer);
}
void ParentDispatchTakeChild(void* interface, void* bytes,
::fidl::Transaction* txn) {
auto message = reinterpret_cast<
::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequest*>(bytes);
::llcpp::fidl::test::protocolrequest::Parent::Interface::TakeChildCompleter::
Sync completer(txn);
reinterpret_cast<::llcpp::fidl::test::protocolrequest::Parent::Interface*>(
interface)
->TakeChild(std::move(message->c), completer);
}
void ParentDispatchTakeChildRequest(void* interface, void* bytes,
::fidl::Transaction* txn) {
auto message = reinterpret_cast<
::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequestRequest*>(
bytes);
::llcpp::fidl::test::protocolrequest::Parent::Interface::
TakeChildRequestCompleter::Sync completer(txn);
reinterpret_cast<::llcpp::fidl::test::protocolrequest::Parent::Interface*>(
interface)
->TakeChildRequest(std::move(message->r), completer);
}
} // namespace methods
namespace entries {
::fidl::internal::MethodEntry Parent[] = {
{kParent_GetChild_Ordinal,
::llcpp::fidl::test::protocolrequest::Parent::GetChildRequest::Type,
methods::ParentDispatchGetChild},
{kParent_GetChildRequest_Ordinal,
::llcpp::fidl::test::protocolrequest::Parent::GetChildRequestRequest::Type,
methods::ParentDispatchGetChildRequest},
{kParent_TakeChild_Ordinal,
::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequest::Type,
methods::ParentDispatchTakeChild},
{kParent_TakeChildRequest_Ordinal,
::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequestRequest::
Type,
methods::ParentDispatchTakeChildRequest},
};
} // namespace entries
::fidl::DispatchResult Parent::TryDispatch(Interface* impl,
fidl_incoming_msg_t* msg,
::fidl::Transaction* txn) {
return ::fidl::internal::TryDispatch(
impl, msg, txn, entries::Parent,
entries::Parent +
sizeof(entries::Parent) / sizeof(::fidl::internal::MethodEntry));
}
#endif
#ifdef __Fuchsia__
::fidl::DispatchResult Parent::Dispatch(Interface* impl,
fidl_incoming_msg_t* msg,
::fidl::Transaction* txn) {
::fidl::DispatchResult dispatch_result = TryDispatch(impl, msg, txn);
if (dispatch_result == ::fidl::DispatchResult::kNotFound) {
FidlHandleInfoCloseMany(msg->handles, msg->num_handles);
txn->InternalError(
{::fidl::UnbindInfo::kUnexpectedMessage, ZX_ERR_NOT_SUPPORTED});
}
return dispatch_result;
}
::fidl::DispatchResult Parent::Interface::dispatch_message(
fidl_incoming_msg_t* msg, ::fidl::Transaction* txn) {
return Parent::Dispatch(this, msg, txn);
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::Interface::GetChildCompleterBase::Reply(
::fidl::ClientEnd<::llcpp::fidl::test::protocolrequest::Child> c) {
::fidl::internal::EncodedMessageTypes<GetChildResponse>::OwnedByte _response{
c};
return CompleterBase::SendReply(&_response.GetOutgoingMessage());
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::Interface::GetChildCompleterBase::Reply(
::fidl::BufferSpan _buffer,
::fidl::ClientEnd<::llcpp::fidl::test::protocolrequest::Child> c) {
GetChildResponse::UnownedEncodedMessage _response(_buffer.data,
_buffer.capacity, c);
return CompleterBase::SendReply(&_response.GetOutgoingMessage());
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::Interface::GetChildRequestCompleterBase::Reply(
::fidl::ServerEnd<::llcpp::fidl::test::protocolrequest::Child> r) {
::fidl::internal::EncodedMessageTypes<GetChildRequestResponse>::OwnedByte
_response{r};
return CompleterBase::SendReply(&_response.GetOutgoingMessage());
}
#endif
#ifdef __Fuchsia__
::fidl::Result Parent::Interface::GetChildRequestCompleterBase::Reply(
::fidl::BufferSpan _buffer,
::fidl::ServerEnd<::llcpp::fidl::test::protocolrequest::Child> r) {
GetChildRequestResponse::UnownedEncodedMessage _response(_buffer.data,
_buffer.capacity, r);
return CompleterBase::SendReply(&_response.GetOutgoingMessage());
}
#endif
void ::llcpp::fidl::test::protocolrequest::Parent::GetChildRequest::_InitHeader(
zx_txid_t _txid) {
fidl_init_txn_header(&_hdr, _txid, kParent_GetChild_Ordinal);
}
void ::llcpp::fidl::test::protocolrequest::Parent::GetChildResponse::
_InitHeader() {
fidl_init_txn_header(&_hdr, 0, kParent_GetChild_Ordinal);
}
void ::llcpp::fidl::test::protocolrequest::Parent::GetChildResponse::
_CloseHandles() {
c.reset();
}
void ::llcpp::fidl::test::protocolrequest::Parent::GetChildRequestRequest::
_InitHeader(zx_txid_t _txid) {
fidl_init_txn_header(&_hdr, _txid, kParent_GetChildRequest_Ordinal);
}
void ::llcpp::fidl::test::protocolrequest::Parent::GetChildRequestResponse::
_InitHeader() {
fidl_init_txn_header(&_hdr, 0, kParent_GetChildRequest_Ordinal);
}
void ::llcpp::fidl::test::protocolrequest::Parent::GetChildRequestResponse::
_CloseHandles() {
r.reset();
}
void ::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequest::
_InitHeader(zx_txid_t _txid) {
fidl_init_txn_header(&_hdr, _txid, kParent_TakeChild_Ordinal);
}
void ::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequest::
_CloseHandles() {
c.reset();
}
void ::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequestRequest::
_InitHeader(zx_txid_t _txid) {
fidl_init_txn_header(&_hdr, _txid, kParent_TakeChildRequest_Ordinal);
}
void ::llcpp::fidl::test::protocolrequest::Parent::TakeChildRequestRequest::
_CloseHandles() {
r.reset();
}
#ifdef __Fuchsia__
#endif
namespace {} // namespace
#ifdef __Fuchsia__
std::optional<::fidl::UnbindInfo> Child::ClientImpl::DispatchEvent(
fidl_incoming_msg_t* msg) {
FidlHandleInfoCloseMany(msg->handles, msg->num_handles);
return ::fidl::UnbindInfo{::fidl::UnbindInfo::kUnexpectedMessage,
ZX_ERR_NOT_SUPPORTED};
}
#endif
#ifdef __Fuchsia__
namespace methods {} // namespace methods
namespace entries {
::fidl::internal::MethodEntry Child[] = {};
} // namespace entries
::fidl::DispatchResult Child::TryDispatch(Interface* impl,
fidl_incoming_msg_t* msg,
::fidl::Transaction* txn) {
return ::fidl::DispatchResult::kNotFound;
}
#endif
#ifdef __Fuchsia__
::fidl::DispatchResult Child::Dispatch(Interface* impl,
fidl_incoming_msg_t* msg,
::fidl::Transaction* txn) {
FidlHandleInfoCloseMany(msg->handles, msg->num_handles);
txn->InternalError(
{::fidl::UnbindInfo::kUnexpectedMessage, ZX_ERR_NOT_SUPPORTED});
return ::fidl::DispatchResult::kNotFound;
}
::fidl::DispatchResult Child::Interface::dispatch_message(
fidl_incoming_msg_t* msg, ::fidl::Transaction* txn) {
return Child::Dispatch(this, msg, txn);
}
#endif
#ifdef __Fuchsia__
#endif
} // namespace protocolrequest
} // namespace test
} // namespace fidl
} // namespace llcpp