blob: 01c0ff4125a8663bbc4c25985d107e195602af1c [file] [log] [blame]
{{/*
// Copyright 2022 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:driver/NaturalMessagingHeader" -}}
fidl/{{ .LibraryDots }}/cpp/driver/natural_messaging.h
{{- end }}
{{- define "File:driver/NaturalMessagingHeader" -}}
{{- UseUnified -}}
{{- SetTransport "Driver" -}}
// WARNING: This file is machine generated by fidlgen.
{{ range $experiment := .Experiments }}
// fidl_experiment = {{ $experiment }}
{{- end }}
#pragma once
#include <lib/fidl_driver/cpp/natural_messaging.h>
#include <{{ .Library | Filename "Markers" }}>
#include <{{ .Library | Filename "NaturalTypesHeader" }}>
#include <{{ .Library | Filename "driver/WireMessagingHeader" }}>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
{{ IfdefFuchsia }}
{{ EndifFuchsia }}
{{- range .Decls }}
{{- if Eq .Kind Kinds.Protocol }}{{ $protocol := . }}
{{- range $transport, $_ := .Transports }}
{{- if eq $transport "Driver" -}}
{{- template "Protocol:NaturalMessagingHeader" $protocol }}
{{- template "Protocol:Client:driver/NaturalMessagingHeader" $protocol }}
{{- template "Protocol:EventHandler:NaturalMessagingHeader" $protocol }}
{{- template "Protocol:Interface:NaturalMessagingHeader" $protocol }}
{{- template "Protocol:Dispatcher:NaturalMessagingHeader" $protocol }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
#pragma clang diagnostic pop
{{ UnsetTransport -}}
{{ EndOfFile }}
{{ end }}