target/ppc: Fix argument to ppc_radix64_partition_scoped_xlate() again
[qemu/ar7.git] / tests / qapi-schema / doc-good.json
blobddd89d12334e56cbe4962f721f6bee73b2f22e1d
1 # -*- Mode: Python -*-
2 # Positive QAPI doc comment tests
4 { 'pragma': { 'doc-required': true } }
6 ##
7 # = Section
9 # == Subsection
11 # *strong* _with emphasis_
12 # @var {in braces}
13 # * List item one
14 # - Two, multiple
15 #   lines
17 # 3. Three
18 # Still in list
20 #   Not in list
21 # - Second list
22 # Note: still in list
24 # Note: not in list
25 # 1. Third list
26 #    is numbered
28 # - another item
30 # | example
31 # | multiple lines
33 # Returns: the King
34 # Since: the first age
35 # Notes:
37 # 1. Lorem ipsum dolor sit amet
39 # 2. Ut enim ad minim veniam
41 # Duis aute irure dolor
43 # Example:
45 # -> in
46 # <- out
47 # Examples:
48 # - *verbatim*
49 # - {braces}
53 # @Enum:
54 # @one: The _one_ {and only}
56 # Features:
57 # @enum-feat: Also _one_ {and only}
59 # @two is undocumented
61 { 'enum': 'Enum', 'data':
62   [ { 'name': 'one', 'if': 'defined(IFONE)' }, 'two' ],
63   'features': [ 'enum-feat' ],
64   'if': 'defined(IFCOND)' }
67 # @Base:
68 # @base1:
69 #   the first member
71 { 'struct': 'Base', 'data': { 'base1': 'Enum' } }
74 # @Variant1:
75 # A paragraph
77 # Another paragraph (but no @var: line)
79 # Features:
80 # @variant1-feat: a feature
81 # @member-feat: a member feature
83 { 'struct': 'Variant1',
84   'features': [ 'variant1-feat' ],
85   'data': { 'var1': { 'type': 'str',
86                       'features': [ 'member-feat' ],
87                       'if': 'defined(IFSTR)' } } }
90 # @Variant2:
92 { 'struct': 'Variant2', 'data': {} }
95 # @Object:
96 # Features:
97 # @union-feat1: a feature
99 { 'union': 'Object',
100   'features': [ 'union-feat1' ],
101   'base': 'Base',
102   'discriminator': 'base1',
103   'data': { 'one': 'Variant1', 'two': { 'type': 'Variant2', 'if': 'IFTWO' } } }
106 # @SugaredUnion:
107 # Features:
108 # @union-feat2: a feature
110 { 'union': 'SugaredUnion',
111   'features': [ 'union-feat2' ],
112   'data': { 'one': 'Variant1', 'two': { 'type': 'Variant2', 'if': 'IFTWO' } } }
115 # @Alternate:
116 # @i: an integer
117 # @b is undocumented
119 # Features:
120 # @alt-feat: a feature
122 { 'alternate': 'Alternate',
123   'features': [ 'alt-feat' ],
124   'data': { 'i': 'int', 'b': 'bool' } }
127 # == Another subsection
131 # @cmd:
132 # @arg1: the first argument
134 # @arg2: the second
135 # argument
137 # Features:
138 # @cmd-feat1: a feature
139 # @cmd-feat2: another feature
140 # Note: @arg3 is undocumented
141 # Returns: @Object
142 # TODO: frobnicate
143 # Notes:
144 # - Lorem ipsum dolor sit amet
145 # - Ut enim ad minim veniam
147 # Duis aute irure dolor
148 # Example:
150 # -> in
151 # <- out
152 # Examples:
153 # - *verbatim*
154 # - {braces}
155 # Since: 2.10
157 { 'command': 'cmd',
158   'data': { 'arg1': 'int', '*arg2': 'str', 'arg3': 'bool' },
159   'returns': 'Object',
160   'features': [ 'cmd-feat1', 'cmd-feat2' ] }
163 # @cmd-boxed:
164 # If you're bored enough to read this, go see a video of boxed cats
165 # Features:
166 # @cmd-feat1: a feature
167 # @cmd-feat2: another feature
168 # Example:
170 # -> in
172 # <- out
174 { 'command': 'cmd-boxed', 'boxed': true,
175   'data': 'Object',
176   'features': [ 'cmd-feat1', 'cmd-feat2' ] }
179 # @EVT-BOXED:
180 # Features:
181 # @feat3: a feature
183 { 'event': 'EVT-BOXED',  'boxed': true,
184   'features': [ 'feat3' ],
185   'data': 'Object' }