| {{/* | |
| // 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:WireMessagingHeader" -}} | |
| fidl/{{ .LibraryDots }}/cpp/wire_messaging.h | |
| {{- end }} | |
| {{- define "File:WireMessagingHeader" -}} | |
| {{- UseWire -}} | |
| {{- SetTransport "Channel" -}} | |
| // 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/cpp/wire/wire_messaging.h> | |
| #include <lib/fidl/cpp/wire/client.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> | |
| #include <lib/fidl/cpp/wire/unknown_interaction_handler.h> | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wshadow" | |
| {{- range (call .ProtocolsForTransport "Channel") }} | |
| {{ template "Protocol:ForwardDeclaration:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{- range (call .ServicesForTransport "Channel") }} | |
| {{ template "Service:ForwardDeclaration:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{- range (call .ProtocolsForTransport "Channel") }} | |
| {{ template "Protocol:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{- range (call .ServicesForTransport "Channel") }} | |
| {{ template "Service:WireMessagingHeader" . }} | |
| {{- end }} | |
| {{ EnsureNamespace "fidl" }} | |
| {{- range (call .ProtocolsForTransport "Channel") }} | |
| {{ template "Protocol:ClientImpl:WireMessagingHeader" . }} | |
| {{ template "Protocol:EventSender:WireMessagingHeader" . }} | |
| {{- end }} | |
| #pragma clang diagnostic pop | |
| {{ EndifFuchsia }} | |
| {{ UnsetTransport -}} | |
| {{ EndOfFile }} | |
| {{ end }} |