| // WARNING: This file is machine generated by fidlgen. |
| |
| #pragma once |
| |
| #include "lib/fidl/cpp/internal/natural_types_header.h" |
| |
| // |
| // Domain objects declarations (i.e. "natural types" in unified bindings). |
| // |
| namespace fidl { |
| namespace test { |
| namespace inheritancewithrecursivedecl { |
| #ifdef __Fuchsia__ |
| |
| class Parent; |
| using ParentHandle = ::fidl::InterfaceHandle<Parent>; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| class Child; |
| using ChildHandle = ::fidl::InterfaceHandle<Child>; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| namespace _internal { |
| extern "C" const fidl_type_t |
| fidl_test_inheritancewithrecursivedecl_ParentFirstRequestTable; |
| |
| } // namespace _internal |
| class Parent_RequestEncoder { |
| public: |
| static ::fidl::HLCPPOutgoingMessage First( |
| ::fidl::Encoder* _encoder, |
| ::fidl::InterfaceRequest< |
| ::fidl::test::inheritancewithrecursivedecl::Parent>* request) { |
| fidl_trace(WillHLCPPEncode); |
| _encoder->Alloc(24 - sizeof(fidl_message_header_t)); |
| ::fidl::Encode(_encoder, request, 16); |
| |
| fidl_trace( |
| DidHLCPPEncode, |
| &::fidl::test::inheritancewithrecursivedecl::_internal:: |
| fidl_test_inheritancewithrecursivedecl_ParentFirstRequestTable, |
| _encoder->GetPtr<const char>(0), _encoder->CurrentLength(), |
| _encoder->CurrentHandleCount()); |
| |
| return _encoder->GetMessage(); |
| } |
| }; |
| |
| class Parent_ResponseEncoder { |
| public: |
| }; |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| namespace _internal { |
| extern "C" const fidl_type_t |
| fidl_test_inheritancewithrecursivedecl_ChildFirstRequestTable; |
| |
| extern "C" const fidl_type_t |
| fidl_test_inheritancewithrecursivedecl_ChildSecondRequestTable; |
| |
| } // namespace _internal |
| class Child_RequestEncoder { |
| public: |
| static ::fidl::HLCPPOutgoingMessage First( |
| ::fidl::Encoder* _encoder, |
| ::fidl::InterfaceRequest< |
| ::fidl::test::inheritancewithrecursivedecl::Parent>* request) { |
| fidl_trace(WillHLCPPEncode); |
| _encoder->Alloc(24 - sizeof(fidl_message_header_t)); |
| ::fidl::Encode(_encoder, request, 16); |
| |
| fidl_trace( |
| DidHLCPPEncode, |
| &::fidl::test::inheritancewithrecursivedecl::_internal:: |
| fidl_test_inheritancewithrecursivedecl_ChildFirstRequestTable, |
| _encoder->GetPtr<const char>(0), _encoder->CurrentLength(), |
| _encoder->CurrentHandleCount()); |
| |
| return _encoder->GetMessage(); |
| } |
| static ::fidl::HLCPPOutgoingMessage Second( |
| ::fidl::Encoder* _encoder, |
| ::fidl::InterfaceRequest< |
| ::fidl::test::inheritancewithrecursivedecl::Parent>* request) { |
| fidl_trace(WillHLCPPEncode); |
| _encoder->Alloc(24 - sizeof(fidl_message_header_t)); |
| ::fidl::Encode(_encoder, request, 16); |
| |
| fidl_trace( |
| DidHLCPPEncode, |
| &::fidl::test::inheritancewithrecursivedecl::_internal:: |
| fidl_test_inheritancewithrecursivedecl_ChildSecondRequestTable, |
| _encoder->GetPtr<const char>(0), _encoder->CurrentLength(), |
| _encoder->CurrentHandleCount()); |
| |
| return _encoder->GetMessage(); |
| } |
| }; |
| |
| class Child_ResponseEncoder { |
| public: |
| }; |
| #endif // __Fuchsia__ |
| |
| } // namespace inheritancewithrecursivedecl |
| } // namespace test |
| |
| } // namespace fidl |