| {{/* |
| // 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. |
| |
| #pragma once |
| |
| #include <{{ .Library | Filename "Markers" }}> |
| #include <{{ .Library | Filename "WireTypesHeader" }}> |
| |
| #include <lib/fidl/llcpp/wire_messaging.h> |
| |
| {{ IfdefFuchsia }} |
| #include <lib/fidl/llcpp/client.h> |
| #include <lib/fidl/llcpp/connect_service.h> |
| #include <lib/fidl/llcpp/server.h> |
| #include <lib/fidl/llcpp/service_handler_interface.h> |
| #include <lib/fidl/llcpp/sync_call.h> |
| {{ EndifFuchsia }} |
| |
| {{ range .Dependencies -}} |
| #include <{{ . | Filename "WireMessagingHeader" }}> |
| {{ end -}} |
| |
| |
| {{- range (call .ProtocolsForTransport "Channel") }} |
| {{ template "Protocol:ForwardDeclaration:WireMessagingHeader" . }} |
| {{- end }} |
| {{- range .Services }} |
| {{ template "Service:ForwardDeclaration:WireMessagingHeader" . }} |
| {{- end }} |
| |
| {{- range (call .ProtocolsForTransport "Channel") }} |
| {{ template "Protocol:WireMessagingHeader" . }} |
| {{- end }} |
| {{- range .Services }} |
| {{ template "Service:WireMessagingHeader" . }} |
| {{- end }} |
| |
| {{ EnsureNamespace "fidl" }} |
| |
| {{- range (call .ProtocolsForTransport "Channel") }} |
| {{ template "Protocol:ClientImpl:WireMessagingHeader" . }} |
| |
| {{ template "Protocol:EventSender:WireMessagingHeader" . }} |
| |
| {{- end }} |
| |
| {{ UnsetTransport -}} |
| {{ EndOfFile }} |
| {{ end }} |