| {{/* | |
| // Copyright 2021 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| */}} | |
| {{- define "Filename:driver/WireMessagingHeader" -}} | |
| fidl/{{ .LibraryDots }}/cpp/driver/wire_messaging.h | |
| {{- end }} | |
| {{- define "File:driver/WireMessagingHeader" -}} | |
| {{- UseWire -}} | |
| {{- SetTransport "Driver" -}} | |
| // WARNING: This file is machine generated by fidlgen. | |
| {{ range $experiment := .Experiments }} | |
| // fidl_experiment = {{ $experiment }} | |
| {{- end }} | |
| #pragma once | |
| #include <{{ .Library | Filename "Markers" }}> | |
| #include <{{ .Library | Filename "WireTypesHeader" }}> | |
| #include <lib/fidl/cpp/features.h> | |
| {{ IfdefFuchsia }} | |
| #include <lib/fidl_driver/cpp/wire_messaging.h> | |
| #include <lib/fidl_driver/cpp/wire_client.h> | |
| #include <lib/fidl_driver/cpp/server.h> | |
| #include <lib/fidl/cpp/wire/connect_service.h> | |
| #include <lib/fidl/cpp/wire/server.h> | |
| #include <lib/fidl/cpp/wire/service_handler.h> | |
| #include <lib/fidl/cpp/wire/sync_call.h> | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wshadow" | |
| {{- range (call .ProtocolsForTransport "Driver") }} | |
| {{ template "Protocol:ForwardDeclaration:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{- range (call .ServicesForTransport "Driver") }} | |
| {{ template "Service:ForwardDeclaration:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{- range (call .ProtocolsForTransport "Driver") }} | |
| {{ template "Protocol:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{- range (call .ServicesForTransport "Driver") }} | |
| {{ template "Service:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{ EnsureNamespace "fidl" }} | |
| {{- range (call .ProtocolsForTransport "Driver") }} | |
| {{ template "Protocol:ClientImpl:driver/MessagingHeader" . }} | |
| {{ template "Protocol:EventSender:driver/WireMessagingHeader" . }} | |
| {{- end }} | |
| #pragma clang diagnostic pop | |
| {{ EndifFuchsia }} | |
| {{ UnsetTransport -}} | |
| {{ EndOfFile }} | |
| {{ end }} |