| {{/* |
| // 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:NaturalMessagingSource" -}} |
| fidl/{{ .LibraryDots }}/cpp/natural_messaging.cc |
| {{- end }} |
| |
| |
| {{- define "File:NaturalMessagingSource" -}} |
| {{- UseUnified -}} |
| {{- 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 }} |
| |
| {{- IfdefFuchsia }} |
| |
| #include <lib/fidl/cpp/wire/unknown_interactions.h> |
| |
| #include <{{ .Library | Filename "NaturalMessagingHeader" }}> |
| #include <{{ .Library | Filename "WireMessagingHeader" }}> |
| |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wshadow" |
| |
| {{/* Define natural extensions to the wire messaging layer. */}} |
| {{- range (call .ProtocolsForTransport "Channel") }} |
| {{- template "Protocol:Details:NaturalMessagingSource" . }} |
| {{- template "Protocol:Client:NaturalMessagingSource" . }} |
| {{- template "Protocol:Caller:NaturalMessagingSource" . }} |
| {{- template "Protocol:EventHandler:NaturalMessagingSource" . }} |
| {{- template "Protocol:EventSender:NaturalMessagingSource" . }} |
| {{- template "Protocol:Interface:NaturalMessagingSource" . }} |
| {{- template "Protocol:Dispatcher:NaturalMessagingSource" . }} |
| {{- end }} |
| |
| #pragma clang diagnostic pop |
| |
| {{- EndifFuchsia }} |
| |
| {{ end }}{{/* if not SingleComponentLibraryName */}} |
| |
| {{ UnsetTransport -}} |
| {{ EndOfFile }} |
| {{ end }} |