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
114 object TestUnionTypeA1
115 member integer: int optional=False
116 member name: str optional=False
117 object TestUnionTypeA2
118 member integer: int optional=False
119 member size: int optional=False
120 object q_obj_TestUnionTypeA-base
121 member type-a: TestUnionEnumA optional=False
122 object TestUnionTypeA
123 base q_obj_TestUnionTypeA-base
125 case value-a1: TestUnionTypeA1
126 case value-a2: TestUnionTypeA2
127 object TestUnionTypeB
128 member integer: int optional=False
129 member onoff: bool optional=False
130 object q_obj_TestUnionInUnion-base
131 member type: TestUnionEnum optional=False
132 object TestUnionInUnion
133 base q_obj_TestUnionInUnion-base
135 case value-a: TestUnionTypeA
136 case value-b: TestUnionTypeB
137 alternate AltEnumBool
162 member integer: intList optional=False
163 member s8: int8List optional=False
164 member s16: int16List optional=False
165 member s32: int32List optional=False
166 member s64: int64List optional=False
167 member u8: uint8List optional=False
168 member u16: uint16List optional=False
169 member u32: uint32List optional=False
170 member u64: uint64List optional=False
171 member number: numberList optional=False
172 member boolean: boolList optional=False
173 member string: strList optional=False
174 member sz: sizeList optional=True
175 member any: anyList optional=True
176 member user: StatusList optional=True
177 include include/sub-module.json
178 command user-def-cmd None -> None
179 gen=True success_response=True boxed=False oob=False preconfig=False
180 object q_obj_user-def-cmd1-arg
181 member ud1a: UserDefOne optional=False
182 command user-def-cmd1 q_obj_user-def-cmd1-arg -> None
183 gen=True success_response=True boxed=False oob=False preconfig=False
184 object q_obj_user-def-cmd2-arg
185 member ud1a: UserDefOne optional=False
186 member ud1b: UserDefOne optional=True
187 command user-def-cmd2 q_obj_user-def-cmd2-arg -> UserDefTwo
188 gen=True success_response=True boxed=False oob=False preconfig=False
189 command cmd-success-response None -> None
190 gen=True success_response=False boxed=False oob=False preconfig=False
191 command coroutine-cmd None -> None
192 gen=True success_response=True boxed=False oob=False preconfig=False coroutine=True
193 object q_obj_guest-get-time-arg
194 member a: int optional=False
195 member b: int optional=True
196 command guest-get-time q_obj_guest-get-time-arg -> int
197 gen=True success_response=True boxed=False oob=False preconfig=False
198 object q_obj_guest-sync-arg
199 member arg: any optional=False
200 command guest-sync q_obj_guest-sync-arg -> any
201 gen=True success_response=True boxed=False oob=False preconfig=False
202 command boxed-struct UserDefZero -> None
203 gen=True success_response=True boxed=True oob=False preconfig=False
204 command boxed-union UserDefFlatUnion -> None
205 gen=True success_response=True boxed=True oob=False preconfig=False
206 command boxed-empty Empty1 -> None
207 gen=True success_response=True boxed=True oob=False preconfig=False
208 command test-flags-command None -> None
209 gen=True success_response=True boxed=False oob=True preconfig=True
210 object UserDefOptions
211 member i64: intList optional=True
212 member u64: uint64List optional=True
213 member u16: uint16List optional=True
214 member i64x: int optional=True
215 member u64x: uint64 optional=True
216 object EventStructOne
217 member struct1: UserDefOne optional=False
218 member string: str optional=False
219 member enum2: EnumOne optional=True
224 object q_obj_EVENT_C-arg
225 member a: int optional=True
226 member b: UserDefOne optional=True
227 member c: str optional=False
228 event EVENT_C q_obj_EVENT_C-arg
230 object q_obj_EVENT_D-arg
231 member a: EventStructOne optional=False
232 member b: str optional=False
233 member c: str optional=True
234 member enum3: EnumOne optional=True
235 event EVENT_D q_obj_EVENT_D-arg
237 event EVENT_E UserDefZero
239 event EVENT_F UserDefFlatUnion
243 enum __org.qemu_x-Enum
244 member __org.qemu_x-value
245 object __org.qemu_x-Base
246 member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
247 object __org.qemu_x-Struct
248 base __org.qemu_x-Base
249 member __org.qemu_x-member2: str optional=False
250 member wchar-t: int optional=True
251 alternate __org.qemu_x-Alt1
253 case __org.qemu_x-branch: str
254 array __org.qemu_x-UnionList __org.qemu_x-Union
255 object __org.qemu_x-Struct2
256 member array: __org.qemu_x-UnionList optional=False
257 object __org.qemu_x-Union
258 base __org.qemu_x-Base
259 tag __org.qemu_x-member1
260 case __org.qemu_x-value: __org.qemu_x-Struct2
261 alternate __org.qemu_x-Alt
263 case __org.qemu_x-branch: __org.qemu_x-Base
264 event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
266 array __org.qemu_x-EnumList __org.qemu_x-Enum
267 array __org.qemu_x-StructList __org.qemu_x-Struct
268 object q_obj___org.qemu_x-command-arg
269 member a: __org.qemu_x-EnumList optional=False
270 member b: __org.qemu_x-StructList optional=False
271 member c: __org.qemu_x-Union optional=False
272 member d: __org.qemu_x-Alt optional=False
273 command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> None
274 gen=True success_response=True boxed=False oob=False preconfig=False
276 member foo: int optional=False
277 member bar: int optional=False
278 if TEST_IF_STRUCT_MEMBER
279 member baz: str optional=True
280 if TEST_IF_STRUCT_MEMBER
285 if TEST_IF_ENUM_MEMBER
287 object q_obj_TestIfUnion-base
288 member type: TestIfEnum optional=False
289 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
291 base q_obj_TestIfUnion-base
294 case bar: UserDefZero
295 if TEST_IF_ENUM_MEMBER
296 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
297 object q_obj_test-if-union-cmd-arg
298 member union-cmd-arg: TestIfUnion optional=False
299 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
300 command test-if-union-cmd q_obj_test-if-union-cmd-arg -> None
301 gen=True success_response=True boxed=False oob=False preconfig=False
302 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
303 alternate TestIfAlternate
307 if TEST_IF_ALT_MEMBER
308 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
309 object q_obj_test-if-alternate-cmd-arg
310 member alt-cmd-arg: TestIfAlternate optional=False
311 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
312 command test-if-alternate-cmd q_obj_test-if-alternate-cmd-arg -> None
313 gen=True success_response=True boxed=False oob=False preconfig=False
314 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
315 command test-if-cmd TestIfStruct -> UserDefThree
316 gen=True success_response=True boxed=True oob=False preconfig=False
317 if {'all': ['TEST_IF_CMD', 'TEST_IF_STRUCT']}
318 command test-cmd-return-def-three None -> UserDefThree
319 gen=True success_response=True boxed=False oob=False preconfig=False
320 event TEST_IF_EVENT TestIfStruct
322 if {'all': ['TEST_IF_EVT', 'TEST_IF_STRUCT']}
323 event TEST_IF_EVENT2 None
325 if {'not': {'any': [{'not': 'TEST_IF_EVT'}, {'not': 'TEST_IF_STRUCT'}]}}
326 object FeatureStruct0
327 member foo: int optional=False
328 object FeatureStruct1
329 member foo: int optional=False
332 object FeatureStruct2
333 member foo: int optional=False
336 object FeatureStruct3
337 member foo: int optional=False
340 object FeatureStruct4
341 member namespace-test: int optional=False
342 feature namespace-test
346 object CondFeatureStruct1
347 member foo: int optional=False
350 object CondFeatureStruct2
351 member foo: int optional=False
356 object CondFeatureStruct3
357 member foo: int optional=False
359 if {'all': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
360 object CondFeatureStruct4
361 member foo: int optional=False
363 if {'any': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
370 object q_obj_FeatureUnion1-base
371 member tag: FeatureEnum1 optional=False
373 base q_obj_FeatureUnion1-base
375 case eins: FeatureStruct1
379 alternate FeatureAlternate1
381 case eins: FeatureStruct1
383 object q_obj_test-features0-arg
384 member fs0: FeatureStruct0 optional=True
385 member fs1: FeatureStruct1 optional=True
386 member fs2: FeatureStruct2 optional=True
387 member fs3: FeatureStruct3 optional=True
388 member fs4: FeatureStruct4 optional=True
389 member cfs1: CondFeatureStruct1 optional=True
390 member cfs2: CondFeatureStruct2 optional=True
391 member cfs3: CondFeatureStruct3 optional=True
392 member cfs4: CondFeatureStruct4 optional=True
393 command test-features0 q_obj_test-features0-arg -> FeatureStruct1
394 gen=True success_response=True boxed=False oob=False preconfig=False
395 command test-command-features1 None -> None
396 gen=True success_response=True boxed=False oob=False preconfig=False
398 command test-command-features3 None -> None
399 gen=True success_response=True boxed=False oob=False preconfig=False
403 command test-command-cond-features1 None -> None
404 gen=True success_response=True boxed=False oob=False preconfig=False
407 command test-command-cond-features2 None -> None
408 gen=True success_response=True boxed=False oob=False preconfig=False
413 command test-command-cond-features3 None -> None
414 gen=True success_response=True boxed=False oob=False preconfig=False
416 if {'all': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
417 event TEST_EVENT_FEATURES0 FeatureStruct1
419 event TEST_EVENT_FEATURES1 None
422 event TEST_EVENT_FEATURES2 None
425 module include/sub-module.json
426 include sub-sub-module.json
427 object SecondArrayRef
428 member s: StatusList optional=False
429 module sub-sub-module.json
430 array StatusList Status