hpet: recover timer offset correctly
[qemu/ar7.git] / tests / qapi-schema / doc-good.texi
blob177831258157730490fe724d0919c2c94bcb6bb6
1 @section Section
3 @subsection Subsection
5 @strong{strong} @emph{with emphasis}
6 @code{var} @{in braces@}
7 @itemize @bullet
8 @item
9 List item one
10 @item
11 Two, multiple
12 lines
14 @item
15 Three
16 Still in list
18 @end itemize
20 Not in list
21 @itemize @minus
22 @item
23 Second list
24 Note: still in list
26 @end itemize
28 Note: not in list
29 @enumerate
30 @item
31 Third list
32 is numbered
34 @item
35 another item
37 @example
38 example
39 @end example
41 @example
42 multiple lines
43 @end example
46 @end enumerate
48 Returns: the King
49 Since: the first age
50 Notes:
52 @enumerate
53 @item
54 Lorem ipsum dolor sit amet
56 @item
57 Ut enim ad minim veniam
59 @end enumerate
61 Duis aute irure dolor
63 Example:
65 -> in
66 <- out
67 Examples:
68 @itemize @minus
69 @item
70 @strong{verbatim}
71 @item
72 @{braces@}
73 @end itemize
77 @deftp {Enum} Enum
81 @b{Values:}
82 @table @asis
83 @item @code{one}
84 The @emph{one} @{and only@}
85 @item @code{two}
86 Not documented
87 @end table
88 @code{two} is undocumented
90 @end deftp
94 @deftp {Object} Base
98 @b{Members:}
99 @table @asis
100 @item @code{base1: Enum}
101 the first member
102 @end table
104 @end deftp
108 @deftp {Object} Variant1
110 A paragraph
112 Another paragraph (but no @code{var}: line)
114 @b{Members:}
115 @table @asis
116 @item @code{var1: string}
117 Not documented
118 @end table
120 @end deftp
124 @deftp {Object} Variant2
128 @end deftp
132 @deftp {Object} Object
136 @b{Members:}
137 @table @asis
138 @item The members of @code{Base}
139 @item The members of @code{Variant1} when @code{base1} is @t{"one"}
140 @item The members of @code{Variant2} when @code{base1} is @t{"two"}
141 @end table
143 @end deftp
147 @deftp {Object} SugaredUnion
151 @b{Members:}
152 @table @asis
153 @item @code{type}
154 One of @t{"one"}, @t{"two"}
155 @item @code{data: Variant1} when @code{type} is @t{"one"}
156 @item @code{data: Variant2} when @code{type} is @t{"two"}
157 @end table
159 @end deftp
162 @subsection Another subsection
165 @deftypefn Command {} cmd
169 @b{Arguments:}
170 @table @asis
171 @item @code{arg1: int}
172 the first argument
173 @item @code{arg2: string} (optional)
174 the second
175 argument
176 @item @code{arg3: boolean}
177 Not documented
178 @end table
180 @b{Note:}
181 @code{arg3} is undocumented
183 @b{Returns:}
184 @code{Object}
186 @b{TODO:}
187 frobnicate
189 @b{Notes:}
190 @itemize @minus
191 @item
192 Lorem ipsum dolor sit amet
193 @item
194 Ut enim ad minim veniam
196 @end itemize
198 Duis aute irure dolor
200 @b{Example:}
201 @example
202 -> in
203 <- out
204 @end example
206 @b{Examples:}
207 @example
208 - *verbatim*
209 - @{braces@}
210 @end example
212 @b{Since:}
213 2.10
215 @end deftypefn
219 @deftypefn Command {} cmd-boxed
221 If you're bored enough to read this, go see a video of boxed cats
223 @b{Arguments:} the members of @code{Object}
225 @b{Example:}
226 @example
227 -> in
229 <- out
230 @end example
232 @end deftypefn