Merge remote-tracking branch 'remotes/kraxel/tags/ui-20210311-pull-request' into...
[qemu/ar7.git] / tests / qapi-schema / doc-good.txt
blob6ca03d49d0d56548c9b2bf61da94bfbde9d78916
1 Section
2 *******
5 Subsection
6 ==========
8 *with emphasis* "var" {in braces}
10 * List item one
12 * Two, multiple lines
14 * Three Still in list
16 Not in list
18 * Second list Note: still in list
20 Note: not in list
22 1. Third list is numbered
24 2. another item
26 Returns: the King Since: the first age Notes:
28 1. Lorem ipsum dolor sit amet
30 2. Ut enim ad minim veniam
32 Duis aute irure dolor
34 Example:
36 -> in <- out Examples: - *verbatim* - {braces}
39 "Enum" (Enum)
40 -------------
43 Values
44 ~~~~~~
46 "one" (**If: **"defined(IFONE)")
47    The _one_ {and only}
49 "two"
50    Not documented
53 Features
54 ~~~~~~~~
56 "enum-feat"
57    Also _one_ {and only}
59 "two" is undocumented
65 "defined(IFCOND)"
68 "Base" (Object)
69 ---------------
72 Members
73 ~~~~~~~
75 "base1": "Enum"
76    the first member
79 "Variant1" (Object)
80 -------------------
82 A paragraph
84 Another paragraph (but no "var": line)
87 Members
88 ~~~~~~~
90 "var1": "string" (**If: **"defined(IFSTR)")
91    Not documented
94 Features
95 ~~~~~~~~
97 "variant1-feat"
98    a feature
100 "member-feat"
101    a member feature
104 "Variant2" (Object)
105 -------------------
108 "Object" (Object)
109 -----------------
112 Members
113 ~~~~~~~
115 The members of "Base"
116 The members of "Variant1" when "base1" is ""one""
117 The members of "Variant2" when "base1" is ""two"" (**If: **"IFTWO")
119 Features
120 ~~~~~~~~
122 "union-feat1"
123    a feature
126 "SugaredUnion" (Object)
127 -----------------------
130 Members
131 ~~~~~~~
133 "type"
134    One of "one", "two"
136 "data": "Variant1" when "type" is ""one""
137 "data": "Variant2" when "type" is ""two"" (**If: **"IFTWO")
139 Features
140 ~~~~~~~~
142 "union-feat2"
143    a feature
146 "Alternate" (Alternate)
147 -----------------------
150 Members
151 ~~~~~~~
153 "i": "int"
154    an integer "b" is undocumented
156 "b": "boolean"
157    Not documented
160 Features
161 ~~~~~~~~
163 "alt-feat"
164    a feature
167 Another subsection
168 ==================
171 "cmd" (Command)
172 ---------------
175 Arguments
176 ~~~~~~~~~
178 "arg1": "int"
179    the first argument
181 "arg2": "string" (optional)
182    the second argument
184 "arg3": "boolean"
185    Not documented
188 Features
189 ~~~~~~~~
191 "cmd-feat1"
192    a feature
194 "cmd-feat2"
195    another feature
198 Note
199 ~~~~
201 "arg3" is undocumented
204 Returns
205 ~~~~~~~
207 "Object"
210 TODO
211 ~~~~
213 frobnicate
216 Notes
217 ~~~~~
219 * Lorem ipsum dolor sit amet
221 * Ut enim ad minim veniam
223 Duis aute irure dolor
226 Example
227 ~~~~~~~
229    -> in
230    <- out
233 Examples
234 ~~~~~~~~
236    - *verbatim*
237    - {braces}
240 Since
241 ~~~~~
243 2.10
246 "cmd-boxed" (Command)
247 ---------------------
249 If you're bored enough to read this, go see a video of boxed cats
252 Arguments
253 ~~~~~~~~~
255 The members of "Object"
257 Features
258 ~~~~~~~~
260 "cmd-feat1"
261    a feature
263 "cmd-feat2"
264    another feature
267 Example
268 ~~~~~~~
270    -> in
272    <- out
275 "EVT-BOXED" (Event)
276 -------------------
279 Arguments
280 ~~~~~~~~~
282 The members of "Object"
284 Features
285 ~~~~~~~~
287 "feat3"
288    a feature