blob: 05ddff0ad9a56158db2117f365be5b01466afe56 [file] [log] [blame]
// 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.
package templates
const SyscallDescription = `
{{- define "GenerateSyscallDescription" -}}
# 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.
#
# WARNING: This file is machine generated by fidlgen.
include <{{ .HeaderPath }}>
{{- range .Enums }}
{{ .Name }} =
{{- range $index, $element := .Members -}}
{{- if $index -}},{{- end }} {{ $element }}
{{- end -}}
{{- end }}
{{- range .Structs }}
{{ template "StructDefinition" . }}
{{- end }}
{{- range .Unions }}
{{ template "UnionDefinition" . }}
{{- end }}
{{ range $interface := .Interfaces -}}
{{ template "InterfaceDefinition" $interface }}
{{- end -}}
{{- end -}}
`