| {{/* |
| // 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 "GenerateSourceFile" -}} |
| // WARNING: This file is machine generated by fidlgen. |
| {{ "" }} |
| {{- range .Experiments }} |
| // fidl_experiment = {{ . }} |
| {{- end }} |
| |
| #![warn(clippy::all)] |
| #![allow(unused_parens, unused_mut, unused_imports, nonstandard_style)] |
| |
| use { |
| bitflags::bitflags, |
| fuchsia_zircon_status as zx_status, |
| futures::future::{self, MaybeDone, TryFutureExt}, |
| fidl::{ |
| endpoints::{ControlHandle as _, Responder as _}, |
| client::QueryResponseFut, |
| }, |
| }; |
| |
| #[cfg(target_os = "fuchsia")] |
| use fuchsia_zircon as zx; |
| |
| {{- range .Aliases }} |
| {{ template "AliasDeclaration" . }} |
| {{- end }} |
| {{- range .Consts }} |
| {{ template "ConstDeclaration" . }} |
| {{- end }} |
| {{- range .Bits }} |
| {{ template "BitsDeclaration" . }} |
| {{- end }} |
| {{- range .Enums }} |
| {{ template "EnumDeclaration" . }} |
| {{- end }} |
| {{- range .Structs }} |
| {{ template "StructDeclaration" . }} |
| {{- end }} |
| {{- range .Tables }} |
| {{ template "TableDeclaration" . }} |
| {{- end }} |
| {{- range .Unions }} |
| {{ template "UnionDeclaration" . }} |
| {{- end }} |
| {{- range .Protocols }} |
| {{ template "ProtocolDeclaration" . }} |
| {{- end }} |
| {{- range .Services }} |
| {{ template "ServiceDeclaration" . }} |
| {{- end }} |
| |
| mod internal { |
| use super::*; |
| |
| {{- range .Bits }} |
| {{ template "BitsInternal" . }} |
| {{- end }} |
| {{- range .Enums }} |
| {{ template "EnumInternal" . }} |
| {{- end }} |
| {{- range .Structs }} |
| {{ template "StructInternal" . }} |
| {{- end }} |
| {{- range .Tables }} |
| {{ template "TableInternal" . }} |
| {{- end }} |
| {{- range .Unions }} |
| {{ template "UnionInternal" . }} |
| {{- end }} |
| } |
| {{- end }} |