]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qapi-schema/doc-good.texi
Merge remote-tracking branch 'remotes/xtensa/tags/20191023-xtensa' into staging
[mirror_qemu.git] / tests / qapi-schema / doc-good.texi
CommitLineData
c263de3f
MA
1@c AUTOMATICALLY GENERATED, DO NOT MODIFY
2
80d1f2e4
MA
3@section Section
4
5@subsection Subsection
6
c32617a1 7@strong{strong} @emph{with emphasis}
80d1f2e4
MA
8@code{var} @{in braces@}
9@itemize @bullet
10@item
11List item one
12@item
13Two, multiple
14lines
15
16@item
17Three
18Still in list
19
20@end itemize
21
22Not in list
23@itemize @minus
24@item
25Second list
26Note: still in list
27
28@end itemize
29
30Note: not in list
31@enumerate
32@item
33Third list
34is numbered
35
36@item
37another item
38
39@example
40example
41@end example
42
43@example
44multiple lines
45@end example
46
47
48@end enumerate
49
50Returns: the King
51Since: the first age
52Notes:
53
54@enumerate
55@item
56Lorem ipsum dolor sit amet
57
58@item
59Ut enim ad minim veniam
60
61@end enumerate
62
63Duis aute irure dolor
64
65Example:
66
67-> in
68<- out
69Examples:
70@itemize @minus
71@item
c32617a1 72@strong{verbatim}
80d1f2e4
MA
73@item
74@{braces@}
75@end itemize
76
77
78
79@deftp {Enum} Enum
80
cfa438ff 81
80d1f2e4
MA
82
83@b{Values:}
84@table @asis
85@item @code{one}
c32617a1 86The @emph{one} @{and only@}
a35c9bf8 87@*@b{If:} @code{defined(IFONE)}
80d1f2e4
MA
88@item @code{two}
89Not documented
90@end table
91@code{two} is undocumented
92
901a34a4 93@b{If:} @code{defined(IFCOND)}
80d1f2e4
MA
94@end deftp
95
96
97
98@deftp {Object} Base
99
100
101
102@b{Members:}
103@table @asis
104@item @code{base1: Enum}
105the first member
106@end table
107
80d1f2e4
MA
108@end deftp
109
110
111
112@deftp {Object} Variant1
113
114A paragraph
115
116Another paragraph (but no @code{var}: line)
117
118@b{Members:}
119@table @asis
120@item @code{var1: string}
121Not documented
8867bf08 122@*@b{If:} @code{defined(IFSTR)}
80d1f2e4
MA
123@end table
124
79598c8a
MA
125@b{Features:}
126@table @asis
127@item @code{variant1-feat}
128a feature
129@end table
130
80d1f2e4
MA
131@end deftp
132
133
134
135@deftp {Object} Variant2
136
137
138
80d1f2e4
MA
139@end deftp
140
141
142
143@deftp {Object} Object
144
145
146
147@b{Members:}
148@table @asis
149@item The members of @code{Base}
150@item The members of @code{Variant1} when @code{base1} is @t{"one"}
01ae9cc2 151@item The members of @code{Variant2} when @code{base1} is @t{"two"} (@b{If:} @code{IFTWO})
80d1f2e4
MA
152@end table
153
80d1f2e4
MA
154@end deftp
155
156
157
158@deftp {Object} SugaredUnion
159
160
161
162@b{Members:}
163@table @asis
164@item @code{type}
165One of @t{"one"}, @t{"two"}
166@item @code{data: Variant1} when @code{type} is @t{"one"}
01ae9cc2 167@item @code{data: Variant2} when @code{type} is @t{"two"} (@b{If:} @code{IFTWO})
80d1f2e4
MA
168@end table
169
80d1f2e4
MA
170@end deftp
171
172
173@subsection Another subsection
174
175
176@deftypefn Command {} cmd
177
178
179
180@b{Arguments:}
181@table @asis
182@item @code{arg1: int}
183the first argument
184@item @code{arg2: string} (optional)
185the second
186argument
187@item @code{arg3: boolean}
188Not documented
189@end table
190
79598c8a
MA
191@b{Features:}
192@table @asis
193@item @code{cmd-feat1}
194a feature
195@item @code{cmd-feat2}
196another feature
197@end table
198
80d1f2e4
MA
199@b{Note:}
200@code{arg3} is undocumented
201
202@b{Returns:}
203@code{Object}
204
205@b{TODO:}
206frobnicate
207
208@b{Notes:}
209@itemize @minus
210@item
211Lorem ipsum dolor sit amet
212@item
213Ut enim ad minim veniam
214
215@end itemize
216
217Duis aute irure dolor
218
219@b{Example:}
220@example
221-> in
222<- out
223@end example
224
80d1f2e4
MA
225@b{Examples:}
226@example
227- *verbatim*
228- @{braces@}
229@end example
230
80d1f2e4
MA
231@b{Since:}
2322.10
233
234@end deftypefn
235
236
237
238@deftypefn Command {} cmd-boxed
239
240If you're bored enough to read this, go see a video of boxed cats
241
242@b{Arguments:} the members of @code{Object}
243
79598c8a
MA
244@b{Features:}
245@table @asis
246@item @code{cmd-feat1}
247a feature
248@item @code{cmd-feat2}
249another feature
250@end table
251
80d1f2e4
MA
252@b{Example:}
253@example
254-> in
255
256<- out
257@end example
258
80d1f2e4
MA
259@end deftypefn
260