| {{/* |
| // Copyright 2018 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:WireMessagingSource" -}} |
| fidl/{{ .LibraryDots }}/cpp/wire_messaging.cc |
| {{- end }} |
| |
| |
| {{- define "File:WireMessagingSource" -}} |
| {{- UseWire -}} |
| {{- SetTransport "Channel" -}} |
| // WARNING: This file is machine generated by fidlgen. |
| |
| {{- /* When the library name only has one component, it is always special. |
| Those libraries should not define business logic types or protocols, and we |
| do not support them in the bindings. */}} |
| {{- if not .SingleComponentLibraryName }} |
| |
| #include <{{ .Library | Filename "WireMessagingHeader" }}> |
| |
| #include <memory> |
| |
| {{ "" }} |
| |
| |
| |
| {{- range (call .ProtocolsForTransport "Channel") }} |
| {{ template "Protocol:WireMessagingSource" . }} |
| {{ template "Protocol:EventSender:WireMessagingSource" . }} |
| {{ end }} |
| {{ "" }} |
| {{- end }}{{/* if not SingleComponentLibraryName */}} |
| |
| {{ UnsetTransport -}} |
| {{ EndOfFile }} |
| {{ end }} |
| |