| {{/* | |
| // 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. | |
| {{ range $experiment := .Experiments }} | |
| // fidl_experiment = {{ $experiment }} | |
| {{- end }} | |
| {{- /* 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 <lib/fidl/cpp/features.h> | |
| {{- IfdefFuchsia }} | |
| #include <{{ .Library | Filename "WireMessagingHeader" }}> | |
| #include <memory> | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wshadow" | |
| {{ range (call .ProtocolsForTransport "Channel") }} | |
| {{ template "Protocol:WireMessagingSource" . }} | |
| {{ template "Protocol:EventSender:WireMessagingSource" . }} | |
| {{ end }} | |
| #pragma clang diagnostic pop | |
| {{- EndifFuchsia }} | |
| {{ end }}{{/* if not SingleComponentLibraryName */}} | |
| {{ UnsetTransport -}} | |
| {{ EndOfFile }} | |
| {{ end }} |