| // WARNING: This file is machine generated by fidlgen. |
| |
| // fidl_experiment = output_index_json |
| |
| #include <lib/fidl/cpp/features.h> |
| #if __FIDL_SUPPORT_HANDLES |
| |
| #include <fidl/test.handles/cpp/driver/wire_messaging.h> |
| #include <lib/fidl_driver/cpp/unknown_interactions.h> |
| |
| #include <memory> |
| |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wshadow" |
| |
| ::fidl::internal::WireEventDispatcher<::test_handles::DriverProtocol>::WireEventDispatcher(::fidl::internal::WireEventHandlerInterface<::test_handles::DriverProtocol>* event_handler) |
| : IncomingEventDispatcher(event_handler) {} |
| |
| constexpr ::fidl::internal::MethodEntry fidl::internal::WireServerDispatcher<::test_handles::DriverProtocol>::entries_[] = {}; |
| |
| const ::fidl::internal::MethodEntry* fidl::internal::WireServerDispatcher<::test_handles::DriverProtocol>::entries_end_ = |
| &entries_[0]; |
| |
| ::fidl::DispatchResult fidl::internal::WireServerDispatcher<::test_handles::DriverProtocol>::TryDispatch( |
| ::fdf::WireServer<::test_handles::DriverProtocol>* impl, ::fidl::IncomingHeaderAndMessage& msg, |
| internal::MessageStorageViewBase* storage_view, ::fidl::Transaction* txn) { |
| return ::fidl::internal::TryDispatch( |
| impl, msg, storage_view, txn, entries_, entries_end_); |
| } |
| |
| void fidl::internal::WireServerDispatcher<::test_handles::DriverProtocol>::Dispatch(::fdf::WireServer<::test_handles::DriverProtocol>* impl, ::fidl::IncomingHeaderAndMessage&& msg, |
| internal::MessageStorageViewBase* storage_view, ::fidl::Transaction* txn) { |
| ::fidl::internal::Dispatch(impl, msg, storage_view, txn, entries_, entries_end_, |
| &unknown_method_handler_entry_); |
| } |
| |
| void fdf::WireServer<::test_handles::DriverProtocol>::dispatch_message( |
| ::fidl::IncomingHeaderAndMessage&& msg, ::fidl::Transaction* txn, |
| ::fidl::internal::MessageStorageViewBase* storage_view) { |
| ::fidl::internal::WireServerDispatcher<::test_handles::DriverProtocol>::Dispatch(this, std::move(msg), storage_view, txn); |
| } |
| |
| fdf::WireServer<::test_handles::DriverProtocol>::Handler fdf::WireServer<::test_handles::DriverProtocol>::bind_handler(fdf_dispatcher_t* dispatcher) { |
| return [impl = this, dispatcher = dispatcher](::fdf::ServerEnd<::test_handles::DriverProtocol> request) { |
| (void)::fdf::BindServer(dispatcher, std::move(request), impl); |
| }; |
| } |
| |
| #pragma clang diagnostic pop |
| |
| #endif // __FIDL_SUPPORT_HANDLES |