softmmu: split off vl.c:main() into main.c
[qemu/ar7.git] / tests / qapi-schema / doc-good.texi
blobd4b15dabf03e6c450bad0ff991f05517209ab268
1 @c AUTOMATICALLY GENERATED, DO NOT MODIFY
3 @section Section
5 @subsection Subsection
7 @strong{strong} @emph{with emphasis}
8 @code{var} @{in braces@}
9 @itemize @bullet
10 @item
11 List item one
12 @item
13 Two, multiple
14 lines
16 @item
17 Three
18 Still in list
20 @end itemize
22 Not in list
23 @itemize @minus
24 @item
25 Second list
26 Note: still in list
28 @end itemize
30 Note: not in list
31 @enumerate
32 @item
33 Third list
34 is numbered
36 @item
37 another item
39 @example
40 example
41 @end example
43 @example
44 multiple lines
45 @end example
48 @end enumerate
50 Returns: the King
51 Since: the first age
52 Notes:
54 @enumerate
55 @item
56 Lorem ipsum dolor sit amet
58 @item
59 Ut enim ad minim veniam
61 @end enumerate
63 Duis aute irure dolor
65 Example:
67 -> in
68 <- out
69 Examples:
70 @itemize @minus
71 @item
72 @strong{verbatim}
73 @item
74 @{braces@}
75 @end itemize
79 @deftp {Enum} Enum
83 @b{Values:}
84 @table @asis
85 @item @code{one}
86 The @emph{one} @{and only@}
87 @*@b{If:} @code{defined(IFONE)}
88 @item @code{two}
89 Not documented
90 @end table
91 @code{two} is undocumented
93 @b{If:} @code{defined(IFCOND)}
94 @end deftp
98 @deftp {Object} Base
102 @b{Members:}
103 @table @asis
104 @item @code{base1: Enum}
105 the first member
106 @end table
108 @end deftp
112 @deftp {Object} Variant1
114 A paragraph
116 Another paragraph (but no @code{var}: line)
118 @b{Members:}
119 @table @asis
120 @item @code{var1: string}
121 Not documented
122 @*@b{If:} @code{defined(IFSTR)}
123 @end table
125 @b{Features:}
126 @table @asis
127 @item @code{variant1-feat}
128 a feature
129 @end table
131 @end deftp
135 @deftp {Object} Variant2
139 @end deftp
143 @deftp {Object} Object
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"}
151 @item The members of @code{Variant2} when @code{base1} is @t{"two"} (@b{If:} @code{IFTWO})
152 @end table
154 @end deftp
158 @deftp {Object} SugaredUnion
162 @b{Members:}
163 @table @asis
164 @item @code{type}
165 One of @t{"one"}, @t{"two"}
166 @item @code{data: Variant1} when @code{type} is @t{"one"}
167 @item @code{data: Variant2} when @code{type} is @t{"two"} (@b{If:} @code{IFTWO})
168 @end table
170 @end deftp
174 @deftp {Alternate} Alternate
178 @b{Members:}
179 @table @asis
180 @item @code{i: int}
181 an integer
182 @code{b} is undocumented
183 @item @code{b: boolean}
184 Not documented
185 @end table
187 @end deftp
190 @subsection Another subsection
193 @deftypefn Command {} cmd
197 @b{Arguments:}
198 @table @asis
199 @item @code{arg1: int}
200 the first argument
201 @item @code{arg2: string} (optional)
202 the second
203 argument
204 @item @code{arg3: boolean}
205 Not documented
206 @end table
208 @b{Features:}
209 @table @asis
210 @item @code{cmd-feat1}
211 a feature
212 @item @code{cmd-feat2}
213 another feature
214 @end table
216 @b{Note:}
217 @code{arg3} is undocumented
219 @b{Returns:}
220 @code{Object}
222 @b{TODO:}
223 frobnicate
225 @b{Notes:}
226 @itemize @minus
227 @item
228 Lorem ipsum dolor sit amet
229 @item
230 Ut enim ad minim veniam
232 @end itemize
234 Duis aute irure dolor
236 @b{Example:}
237 @example
238 -> in
239 <- out
240 @end example
242 @b{Examples:}
243 @example
244 - *verbatim*
245 - @{braces@}
246 @end example
248 @b{Since:}
249 2.10
251 @end deftypefn
255 @deftypefn Command {} cmd-boxed
257 If you're bored enough to read this, go see a video of boxed cats
259 @b{Arguments:} the members of @code{Object}
261 @b{Features:}
262 @table @asis
263 @item @code{cmd-feat1}
264 a feature
265 @item @code{cmd-feat2}
266 another feature
267 @end table
269 @b{Example:}
270 @example
271 -> in
273 <- out
274 @end example
276 @end deftypefn
280 @deftypefn Event {} EVT-BOXED
284 @b{Arguments:} the members of @code{Object}
286 @end deftypefn