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
128 object q_obj_intList-wrapper
129 member data: intList optional=False
130 object q_obj_int8List-wrapper
131 member data: int8List optional=False
132 object q_obj_int16List-wrapper
133 member data: int16List optional=False
134 object q_obj_int32List-wrapper
135 member data: int32List optional=False
136 object q_obj_int64List-wrapper
137 member data: int64List optional=False
138 object q_obj_uint8List-wrapper
139 member data: uint8List optional=False
140 object q_obj_uint16List-wrapper
141 member data: uint16List optional=False
142 object q_obj_uint32List-wrapper
143 member data: uint32List optional=False
144 object q_obj_uint64List-wrapper
145 member data: uint64List optional=False
146 object q_obj_numberList-wrapper
147 member data: numberList optional=False
148 object q_obj_boolList-wrapper
149 member data: boolList optional=False
150 object q_obj_strList-wrapper
151 member data: strList optional=False
152 object q_obj_sizeList-wrapper
153 member data: sizeList optional=False
154 object q_obj_anyList-wrapper
155 member data: anyList optional=False
156 object q_obj_StatusList-wrapper
157 member data: StatusList optional=False
158 enum UserDefListUnionKind
174 object UserDefListUnion
175 member type: UserDefListUnionKind optional=False
177 case integer: q_obj_intList-wrapper
178 case s8: q_obj_int8List-wrapper
179 case s16: q_obj_int16List-wrapper
180 case s32: q_obj_int32List-wrapper
181 case s64: q_obj_int64List-wrapper
182 case u8: q_obj_uint8List-wrapper
183 case u16: q_obj_uint16List-wrapper
184 case u32: q_obj_uint32List-wrapper
185 case u64: q_obj_uint64List-wrapper
186 case number: q_obj_numberList-wrapper
187 case boolean: q_obj_boolList-wrapper
188 case string: q_obj_strList-wrapper
189 case sizes: q_obj_sizeList-wrapper
190 case any: q_obj_anyList-wrapper
191 case user: q_obj_StatusList-wrapper
192 include include/sub-module.json
193 command user-def-cmd None -> None
194 gen=True success_response=True boxed=False oob=False preconfig=False
195 object q_obj_user-def-cmd1-arg
196 member ud1a: UserDefOne optional=False
197 command user-def-cmd1 q_obj_user-def-cmd1-arg -> None
198 gen=True success_response=True boxed=False oob=False preconfig=False
199 object q_obj_user-def-cmd2-arg
200 member ud1a: UserDefOne optional=False
201 member ud1b: UserDefOne optional=True
202 command user-def-cmd2 q_obj_user-def-cmd2-arg -> UserDefTwo
203 gen=True success_response=True boxed=False oob=False preconfig=False
204 command cmd-success-response None -> None
205 gen=True success_response=False boxed=False oob=False preconfig=False
206 command coroutine-cmd None -> None
207 gen=True success_response=True boxed=False oob=False preconfig=False coroutine=True
208 object q_obj_guest-get-time-arg
209 member a: int optional=False
210 member b: int optional=True
211 command guest-get-time q_obj_guest-get-time-arg -> int
212 gen=True success_response=True boxed=False oob=False preconfig=False
213 object q_obj_guest-sync-arg
214 member arg: any optional=False
215 command guest-sync q_obj_guest-sync-arg -> any
216 gen=True success_response=True boxed=False oob=False preconfig=False
217 command boxed-struct UserDefZero -> None
218 gen=True success_response=True boxed=True oob=False preconfig=False
219 command boxed-union UserDefListUnion -> None
220 gen=True success_response=True boxed=True oob=False preconfig=False
221 command boxed-empty Empty1 -> None
222 gen=True success_response=True boxed=True oob=False preconfig=False
223 command test-flags-command None -> None
224 gen=True success_response=True boxed=False oob=True preconfig=True
225 object UserDefOptions
226 member i64: intList optional=True
227 member u64: uint64List optional=True
228 member u16: uint16List optional=True
229 member i64x: int optional=True
230 member u64x: uint64 optional=True
231 object EventStructOne
232 member struct1: UserDefOne optional=False
233 member string: str optional=False
234 member enum2: EnumOne optional=True
239 object q_obj_EVENT_C-arg
240 member a: int optional=True
241 member b: UserDefOne optional=True
242 member c: str optional=False
243 event EVENT_C q_obj_EVENT_C-arg
245 object q_obj_EVENT_D-arg
246 member a: EventStructOne optional=False
247 member b: str optional=False
248 member c: str optional=True
249 member enum3: EnumOne optional=True
250 event EVENT_D q_obj_EVENT_D-arg
252 event EVENT_E UserDefZero
254 event EVENT_F UserDefFlatUnion
258 enum __org.qemu_x-Enum
259 member __org.qemu_x-value
260 object __org.qemu_x-Base
261 member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
262 object __org.qemu_x-Struct
263 base __org.qemu_x-Base
264 member __org.qemu_x-member2: str optional=False
265 member wchar-t: int optional=True
266 object q_obj_str-wrapper
267 member data: str optional=False
268 enum __org.qemu_x-Union1Kind
269 member __org.qemu_x-branch
270 object __org.qemu_x-Union1
271 member type: __org.qemu_x-Union1Kind optional=False
273 case __org.qemu_x-branch: q_obj_str-wrapper
274 alternate __org.qemu_x-Alt1
276 case __org.qemu_x-branch: str
277 array __org.qemu_x-Union1List __org.qemu_x-Union1
278 object __org.qemu_x-Struct2
279 member array: __org.qemu_x-Union1List optional=False
280 object __org.qemu_x-Union2
281 base __org.qemu_x-Base
282 tag __org.qemu_x-member1
283 case __org.qemu_x-value: __org.qemu_x-Struct2
284 alternate __org.qemu_x-Alt
286 case __org.qemu_x-branch: __org.qemu_x-Base
287 event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
289 array __org.qemu_x-EnumList __org.qemu_x-Enum
290 array __org.qemu_x-StructList __org.qemu_x-Struct
291 object q_obj___org.qemu_x-command-arg
292 member a: __org.qemu_x-EnumList optional=False
293 member b: __org.qemu_x-StructList optional=False
294 member c: __org.qemu_x-Union2 optional=False
295 member d: __org.qemu_x-Alt optional=False
296 command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> __org.qemu_x-Union1
297 gen=True success_response=True boxed=False oob=False preconfig=False
299 member foo: int optional=False
300 member bar: int optional=False
301 if ['defined(TEST_IF_STRUCT_BAR)']
302 if ['defined(TEST_IF_STRUCT)']
306 if ['defined(TEST_IF_ENUM_BAR)']
307 if ['defined(TEST_IF_ENUM)']
308 object q_obj_TestStruct-wrapper
309 member data: TestStruct optional=False
313 if ['defined(TEST_IF_UNION_BAR)']
314 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
316 member type: TestIfUnionKind optional=False
318 case foo: q_obj_TestStruct-wrapper
319 case bar: q_obj_str-wrapper
320 if ['defined(TEST_IF_UNION_BAR)']
321 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
322 object q_obj_test-if-union-cmd-arg
323 member union-cmd-arg: TestIfUnion optional=False
324 if ['defined(TEST_IF_UNION)']
325 command test-if-union-cmd q_obj_test-if-union-cmd-arg -> None
326 gen=True success_response=True boxed=False oob=False preconfig=False
327 if ['defined(TEST_IF_UNION)']
328 alternate TestIfAlternate
332 if ['defined(TEST_IF_ALT_BAR)']
333 if ['defined(TEST_IF_ALT) && defined(TEST_IF_STRUCT)']
334 object q_obj_test-if-alternate-cmd-arg
335 member alt-cmd-arg: TestIfAlternate optional=False
336 if ['defined(TEST_IF_ALT)']
337 command test-if-alternate-cmd q_obj_test-if-alternate-cmd-arg -> None
338 gen=True success_response=True boxed=False oob=False preconfig=False
339 if ['defined(TEST_IF_ALT)']
340 object q_obj_test-if-cmd-arg
341 member foo: TestIfStruct optional=False
342 member bar: TestIfEnum optional=False
343 if ['defined(TEST_IF_CMD_BAR)']
344 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
345 command test-if-cmd q_obj_test-if-cmd-arg -> UserDefThree
346 gen=True success_response=True boxed=False oob=False preconfig=False
347 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
348 command test-cmd-return-def-three None -> UserDefThree
349 gen=True success_response=True boxed=False oob=False preconfig=False
350 array TestIfEnumList TestIfEnum
351 if ['defined(TEST_IF_ENUM)']
352 object q_obj_TEST_IF_EVENT-arg
353 member foo: TestIfStruct optional=False
354 member bar: TestIfEnumList optional=False
355 if ['defined(TEST_IF_EVT_BAR)']
356 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
357 event TEST_IF_EVENT q_obj_TEST_IF_EVENT-arg
359 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
360 object FeatureStruct0
361 member foo: int optional=False
362 object FeatureStruct1
363 member foo: int optional=False
366 object FeatureStruct2
367 member foo: int optional=False
369 object FeatureStruct3
370 member foo: int optional=False
373 object FeatureStruct4
374 member namespace-test: int optional=False
375 feature namespace-test
379 object CondFeatureStruct1
380 member foo: int optional=False
382 if ['defined(TEST_IF_FEATURE_1)']
383 object CondFeatureStruct2
384 member foo: int optional=False
386 if ['defined(TEST_IF_FEATURE_1)']
388 if ['defined(TEST_IF_FEATURE_2)']
389 object CondFeatureStruct3
390 member foo: int optional=False
392 if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']
398 object q_obj_FeatureUnion1-base
399 member tag: FeatureEnum1 optional=False
401 base q_obj_FeatureUnion1-base
403 case eins: FeatureStruct1
407 alternate FeatureAlternate1
409 case eins: FeatureStruct1
411 object q_obj_test-features0-arg
412 member fs0: FeatureStruct0 optional=True
413 member fs1: FeatureStruct1 optional=True
414 member fs2: FeatureStruct2 optional=True
415 member fs3: FeatureStruct3 optional=True
416 member fs4: FeatureStruct4 optional=True
417 member cfs1: CondFeatureStruct1 optional=True
418 member cfs2: CondFeatureStruct2 optional=True
419 member cfs3: CondFeatureStruct3 optional=True
420 command test-features0 q_obj_test-features0-arg -> FeatureStruct1
421 gen=True success_response=True boxed=False oob=False preconfig=False
422 command test-command-features1 None -> None
423 gen=True success_response=True boxed=False oob=False preconfig=False
425 command test-command-features3 None -> None
426 gen=True success_response=True boxed=False oob=False preconfig=False
429 command test-command-cond-features1 None -> None
430 gen=True success_response=True boxed=False oob=False preconfig=False
432 if ['defined(TEST_IF_FEATURE_1)']
433 command test-command-cond-features2 None -> None
434 gen=True success_response=True boxed=False oob=False preconfig=False
436 if ['defined(TEST_IF_FEATURE_1)']
438 if ['defined(TEST_IF_FEATURE_2)']
439 command test-command-cond-features3 None -> None
440 gen=True success_response=True boxed=False oob=False preconfig=False
442 if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']
443 event TEST_EVENT_FEATURES0 FeatureStruct1
445 event TEST_EVENT_FEATURES1 None
448 module include/sub-module.json
449 include sub-sub-module.json
450 object SecondArrayRef
451 member s: StatusList optional=False
452 module sub-sub-module.json
453 array StatusList Status