12 module qapi-schema-test.json
14 member integer: int optional=False
15 member boolean: bool optional=False
16 member string: str optional=False
18 member enum1: EnumOne optional=False
19 member enum2: EnumOne optional=True
20 member enum3: EnumOne optional=False
21 member enum4: EnumOne optional=True
26 object q_obj_Union-base
27 member type: EnumOne optional=False
35 command user-def-cmd0 Empty2 -> Empty2
36 gen=True success_response=True boxed=False oob=False preconfig=False
43 member string: str optional=False
44 member enum1: EnumOne optional=True
51 member integer: int optional=False
52 object UserDefTwoDictDict
53 member userdef: UserDefOne optional=False
54 member string: str optional=False
56 member string1: str optional=False
57 member dict2: UserDefTwoDictDict optional=False
58 member dict3: UserDefTwoDictDict optional=True
60 member string0: str optional=False
61 member dict1: UserDefTwoDict optional=False
63 member string0: str optional=False
64 array UserDefOneList UserDefOne
65 array UserDefTwoList UserDefTwo
66 array TestStructList TestStruct
68 member unused1: UserDefOneList optional=False
69 member unused2: UserDefTwoList optional=False
70 member unused3: TestStructList optional=False
72 member boolean: bool optional=False
73 member a_b: int optional=True
75 member intb: int optional=False
76 member a-b: bool optional=True
77 object UserDefFlatUnion
84 object UserDefUnionBase
86 member string: str optional=False
87 member enum1: EnumOne optional=False
88 object q_obj_UserDefFlatUnion2-base
89 member integer: int optional=True
90 member string: str optional=False
91 member enum1: QEnumTwo optional=False
92 object UserDefFlatUnion2
93 base q_obj_UserDefFlatUnion2-base
98 member alt: UserDefAlternate optional=False
99 alternate UserDefAlternate
101 case udfu: UserDefFlatUnion
106 member string1: str optional=False
107 member string2: str optional=False
108 alternate AltEnumBool
129 member integer: intList optional=False
130 member s8: int8List optional=False
131 member s16: int16List optional=False
132 member s32: int32List optional=False
133 member s64: int64List optional=False
134 member u8: uint8List optional=False
135 member u16: uint16List optional=False
136 member u32: uint32List optional=False
137 member u64: uint64List optional=False
138 member number: numberList optional=False
139 member boolean: boolList optional=False
140 member string: strList optional=False
141 member sz: sizeList optional=True
142 member any: anyList optional=True
143 member user: StatusList optional=True
144 include include/sub-module.json
145 command user-def-cmd None -> None
146 gen=True success_response=True boxed=False oob=False preconfig=False
147 object q_obj_user-def-cmd1-arg
148 member ud1a: UserDefOne optional=False
149 command user-def-cmd1 q_obj_user-def-cmd1-arg -> None
150 gen=True success_response=True boxed=False oob=False preconfig=False
151 object q_obj_user-def-cmd2-arg
152 member ud1a: UserDefOne optional=False
153 member ud1b: UserDefOne optional=True
154 command user-def-cmd2 q_obj_user-def-cmd2-arg -> UserDefTwo
155 gen=True success_response=True boxed=False oob=False preconfig=False
156 command cmd-success-response None -> None
157 gen=True success_response=False boxed=False oob=False preconfig=False
158 command coroutine-cmd None -> None
159 gen=True success_response=True boxed=False oob=False preconfig=False coroutine=True
160 object q_obj_guest-get-time-arg
161 member a: int optional=False
162 member b: int optional=True
163 command guest-get-time q_obj_guest-get-time-arg -> int
164 gen=True success_response=True boxed=False oob=False preconfig=False
165 object q_obj_guest-sync-arg
166 member arg: any optional=False
167 command guest-sync q_obj_guest-sync-arg -> any
168 gen=True success_response=True boxed=False oob=False preconfig=False
169 command boxed-struct UserDefZero -> None
170 gen=True success_response=True boxed=True oob=False preconfig=False
171 command boxed-union UserDefFlatUnion -> None
172 gen=True success_response=True boxed=True oob=False preconfig=False
173 command boxed-empty Empty1 -> None
174 gen=True success_response=True boxed=True oob=False preconfig=False
175 command test-flags-command None -> None
176 gen=True success_response=True boxed=False oob=True preconfig=True
177 object UserDefOptions
178 member i64: intList optional=True
179 member u64: uint64List optional=True
180 member u16: uint16List optional=True
181 member i64x: int optional=True
182 member u64x: uint64 optional=True
183 object EventStructOne
184 member struct1: UserDefOne optional=False
185 member string: str optional=False
186 member enum2: EnumOne optional=True
191 object q_obj_EVENT_C-arg
192 member a: int optional=True
193 member b: UserDefOne optional=True
194 member c: str optional=False
195 event EVENT_C q_obj_EVENT_C-arg
197 object q_obj_EVENT_D-arg
198 member a: EventStructOne optional=False
199 member b: str optional=False
200 member c: str optional=True
201 member enum3: EnumOne optional=True
202 event EVENT_D q_obj_EVENT_D-arg
204 event EVENT_E UserDefZero
206 event EVENT_F UserDefFlatUnion
210 enum __org.qemu_x-Enum
211 member __org.qemu_x-value
212 object __org.qemu_x-Base
213 member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
214 object __org.qemu_x-Struct
215 base __org.qemu_x-Base
216 member __org.qemu_x-member2: str optional=False
217 member wchar-t: int optional=True
218 alternate __org.qemu_x-Alt1
220 case __org.qemu_x-branch: str
221 array __org.qemu_x-UnionList __org.qemu_x-Union
222 object __org.qemu_x-Struct2
223 member array: __org.qemu_x-UnionList optional=False
224 object __org.qemu_x-Union
225 base __org.qemu_x-Base
226 tag __org.qemu_x-member1
227 case __org.qemu_x-value: __org.qemu_x-Struct2
228 alternate __org.qemu_x-Alt
230 case __org.qemu_x-branch: __org.qemu_x-Base
231 event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
233 array __org.qemu_x-EnumList __org.qemu_x-Enum
234 array __org.qemu_x-StructList __org.qemu_x-Struct
235 object q_obj___org.qemu_x-command-arg
236 member a: __org.qemu_x-EnumList optional=False
237 member b: __org.qemu_x-StructList optional=False
238 member c: __org.qemu_x-Union optional=False
239 member d: __org.qemu_x-Alt optional=False
240 command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> None
241 gen=True success_response=True boxed=False oob=False preconfig=False
243 member foo: int optional=False
244 member bar: int optional=False
245 if TEST_IF_STRUCT_BAR
252 object q_obj_TestIfUnion-base
253 member type: TestIfEnum optional=False
254 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
256 base q_obj_TestIfUnion-base
259 case bar: UserDefZero
261 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
262 object q_obj_test-if-union-cmd-arg
263 member union-cmd-arg: TestIfUnion optional=False
264 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
265 command test-if-union-cmd q_obj_test-if-union-cmd-arg -> None
266 gen=True success_response=True boxed=False oob=False preconfig=False
267 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
268 alternate TestIfAlternate
273 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
274 object q_obj_test-if-alternate-cmd-arg
275 member alt-cmd-arg: TestIfAlternate optional=False
276 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
277 command test-if-alternate-cmd q_obj_test-if-alternate-cmd-arg -> None
278 gen=True success_response=True boxed=False oob=False preconfig=False
279 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
280 object q_obj_test-if-cmd-arg
281 member foo: TestIfStruct optional=False
282 member bar: TestIfEnum optional=False
284 if {'all': ['TEST_IF_CMD', 'TEST_IF_STRUCT']}
285 command test-if-cmd q_obj_test-if-cmd-arg -> UserDefThree
286 gen=True success_response=True boxed=False oob=False preconfig=False
287 if {'all': ['TEST_IF_CMD', 'TEST_IF_STRUCT']}
288 command test-cmd-return-def-three None -> UserDefThree
289 gen=True success_response=True boxed=False oob=False preconfig=False
290 array TestIfEnumList TestIfEnum
292 object q_obj_TEST_IF_EVENT-arg
293 member foo: TestIfStruct optional=False
294 member bar: TestIfEnumList optional=False
296 if {'all': ['TEST_IF_EVT', 'TEST_IF_STRUCT']}
297 event TEST_IF_EVENT q_obj_TEST_IF_EVENT-arg
299 if {'all': ['TEST_IF_EVT', 'TEST_IF_STRUCT']}
300 event TEST_IF_EVENT2 None
302 if {'not': {'any': [{'not': 'TEST_IF_EVT'}, {'not': 'TEST_IF_STRUCT'}]}}
303 object FeatureStruct0
304 member foo: int optional=False
305 object FeatureStruct1
306 member foo: int optional=False
309 object FeatureStruct2
310 member foo: int optional=False
312 object FeatureStruct3
313 member foo: int optional=False
316 object FeatureStruct4
317 member namespace-test: int optional=False
318 feature namespace-test
322 object CondFeatureStruct1
323 member foo: int optional=False
326 object CondFeatureStruct2
327 member foo: int optional=False
332 object CondFeatureStruct3
333 member foo: int optional=False
335 if {'all': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
336 object CondFeatureStruct4
337 member foo: int optional=False
339 if {'any': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
345 object q_obj_FeatureUnion1-base
346 member tag: FeatureEnum1 optional=False
348 base q_obj_FeatureUnion1-base
350 case eins: FeatureStruct1
354 alternate FeatureAlternate1
356 case eins: FeatureStruct1
358 object q_obj_test-features0-arg
359 member fs0: FeatureStruct0 optional=True
360 member fs1: FeatureStruct1 optional=True
361 member fs2: FeatureStruct2 optional=True
362 member fs3: FeatureStruct3 optional=True
363 member fs4: FeatureStruct4 optional=True
364 member cfs1: CondFeatureStruct1 optional=True
365 member cfs2: CondFeatureStruct2 optional=True
366 member cfs3: CondFeatureStruct3 optional=True
367 member cfs4: CondFeatureStruct4 optional=True
368 command test-features0 q_obj_test-features0-arg -> FeatureStruct1
369 gen=True success_response=True boxed=False oob=False preconfig=False
370 command test-command-features1 None -> None
371 gen=True success_response=True boxed=False oob=False preconfig=False
373 command test-command-features3 None -> None
374 gen=True success_response=True boxed=False oob=False preconfig=False
377 command test-command-cond-features1 None -> None
378 gen=True success_response=True boxed=False oob=False preconfig=False
381 command test-command-cond-features2 None -> None
382 gen=True success_response=True boxed=False oob=False preconfig=False
387 command test-command-cond-features3 None -> None
388 gen=True success_response=True boxed=False oob=False preconfig=False
390 if {'all': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
391 event TEST_EVENT_FEATURES0 FeatureStruct1
393 event TEST_EVENT_FEATURES1 None
396 module include/sub-module.json
397 include sub-sub-module.json
398 object SecondArrayRef
399 member s: StatusList optional=False
400 module sub-sub-module.json
401 array StatusList Status