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 module sub-sub-module.json
157 array StatusList Status
158 module qapi-schema-test.json
159 object q_obj_StatusList-wrapper
160 member data: StatusList optional=False
161 enum UserDefListUnionKind
177 object UserDefListUnion
178 member type: UserDefListUnionKind optional=False
180 case integer: q_obj_intList-wrapper
181 case s8: q_obj_int8List-wrapper
182 case s16: q_obj_int16List-wrapper
183 case s32: q_obj_int32List-wrapper
184 case s64: q_obj_int64List-wrapper
185 case u8: q_obj_uint8List-wrapper
186 case u16: q_obj_uint16List-wrapper
187 case u32: q_obj_uint32List-wrapper
188 case u64: q_obj_uint64List-wrapper
189 case number: q_obj_numberList-wrapper
190 case boolean: q_obj_boolList-wrapper
191 case string: q_obj_strList-wrapper
192 case sizes: q_obj_sizeList-wrapper
193 case any: q_obj_anyList-wrapper
194 case user: q_obj_StatusList-wrapper
195 include include/sub-module.json
196 module include/sub-module.json
197 include sub-sub-module.json
198 module sub-sub-module.json
203 module include/sub-module.json
204 object SecondArrayRef
205 member s: StatusList optional=False
206 module qapi-schema-test.json
207 command user_def_cmd None -> None
208 gen=True success_response=True boxed=False oob=False preconfig=False
209 object q_obj_user_def_cmd1-arg
210 member ud1a: UserDefOne optional=False
211 command user_def_cmd1 q_obj_user_def_cmd1-arg -> None
212 gen=True success_response=True boxed=False oob=False preconfig=False
213 object q_obj_user_def_cmd2-arg
214 member ud1a: UserDefOne optional=False
215 member ud1b: UserDefOne optional=True
216 command user_def_cmd2 q_obj_user_def_cmd2-arg -> UserDefTwo
217 gen=True success_response=True boxed=False oob=False preconfig=False
218 command cmd-success-response None -> None
219 gen=True success_response=False boxed=False oob=False preconfig=False
220 object q_obj_guest-get-time-arg
221 member a: int optional=False
222 member b: int optional=True
223 command guest-get-time q_obj_guest-get-time-arg -> int
224 gen=True success_response=True boxed=False oob=False preconfig=False
225 object q_obj_guest-sync-arg
226 member arg: any optional=False
227 command guest-sync q_obj_guest-sync-arg -> any
228 gen=True success_response=True boxed=False oob=False preconfig=False
229 command boxed-struct UserDefZero -> None
230 gen=True success_response=True boxed=True oob=False preconfig=False
231 command boxed-union UserDefListUnion -> None
232 gen=True success_response=True boxed=True oob=False preconfig=False
233 command boxed-empty Empty1 -> None
234 gen=True success_response=True boxed=True oob=False preconfig=False
235 command test-flags-command None -> None
236 gen=True success_response=True boxed=False oob=True preconfig=True
237 object UserDefOptions
238 member i64: intList optional=True
239 member u64: uint64List optional=True
240 member u16: uint16List optional=True
241 member i64x: int optional=True
242 member u64x: uint64 optional=True
243 object EventStructOne
244 member struct1: UserDefOne optional=False
245 member string: str optional=False
246 member enum2: EnumOne optional=True
251 object q_obj_EVENT_C-arg
252 member a: int optional=True
253 member b: UserDefOne optional=True
254 member c: str optional=False
255 event EVENT_C q_obj_EVENT_C-arg
257 object q_obj_EVENT_D-arg
258 member a: EventStructOne optional=False
259 member b: str optional=False
260 member c: str optional=True
261 member enum3: EnumOne optional=True
262 event EVENT_D q_obj_EVENT_D-arg
264 event EVENT_E UserDefZero
266 event EVENT_F UserDefFlatUnion
270 enum __org.qemu_x-Enum
271 member __org.qemu_x-value
272 object __org.qemu_x-Base
273 member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
274 object __org.qemu_x-Struct
275 base __org.qemu_x-Base
276 member __org.qemu_x-member2: str optional=False
277 member wchar-t: int optional=True
278 object q_obj_str-wrapper
279 member data: str optional=False
280 enum __org.qemu_x-Union1Kind
281 member __org.qemu_x-branch
282 object __org.qemu_x-Union1
283 member type: __org.qemu_x-Union1Kind optional=False
285 case __org.qemu_x-branch: q_obj_str-wrapper
286 alternate __org.qemu_x-Alt1
288 case __org.qemu_x-branch: str
289 array __org.qemu_x-Union1List __org.qemu_x-Union1
290 object __org.qemu_x-Struct2
291 member array: __org.qemu_x-Union1List optional=False
292 object __org.qemu_x-Union2
293 base __org.qemu_x-Base
294 tag __org.qemu_x-member1
295 case __org.qemu_x-value: __org.qemu_x-Struct2
296 alternate __org.qemu_x-Alt
298 case __org.qemu_x-branch: __org.qemu_x-Base
299 event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
301 array __org.qemu_x-EnumList __org.qemu_x-Enum
302 array __org.qemu_x-StructList __org.qemu_x-Struct
303 object q_obj___org.qemu_x-command-arg
304 member a: __org.qemu_x-EnumList optional=False
305 member b: __org.qemu_x-StructList optional=False
306 member c: __org.qemu_x-Union2 optional=False
307 member d: __org.qemu_x-Alt optional=False
308 command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> __org.qemu_x-Union1
309 gen=True success_response=True boxed=False oob=False preconfig=False
311 member foo: int optional=False
312 member bar: int optional=False
313 if ['defined(TEST_IF_STRUCT_BAR)']
314 if ['defined(TEST_IF_STRUCT)']
318 if ['defined(TEST_IF_ENUM_BAR)']
319 if ['defined(TEST_IF_ENUM)']
320 object q_obj_TestStruct-wrapper
321 member data: TestStruct optional=False
325 if ['defined(TEST_IF_UNION_BAR)']
326 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
328 member type: TestIfUnionKind optional=False
330 case foo: q_obj_TestStruct-wrapper
331 case union_bar: q_obj_str-wrapper
332 if ['defined(TEST_IF_UNION_BAR)']
333 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
334 object q_obj_TestIfUnionCmd-arg
335 member union_cmd_arg: TestIfUnion optional=False
336 if ['defined(TEST_IF_UNION)']
337 command TestIfUnionCmd q_obj_TestIfUnionCmd-arg -> None
338 gen=True success_response=True boxed=False oob=False preconfig=False
339 if ['defined(TEST_IF_UNION)']
340 alternate TestIfAlternate
344 if ['defined(TEST_IF_ALT_BAR)']
345 if ['defined(TEST_IF_ALT) && defined(TEST_IF_STRUCT)']
346 object q_obj_TestIfAlternateCmd-arg
347 member alt_cmd_arg: TestIfAlternate optional=False
348 if ['defined(TEST_IF_ALT)']
349 command TestIfAlternateCmd q_obj_TestIfAlternateCmd-arg -> None
350 gen=True success_response=True boxed=False oob=False preconfig=False
351 if ['defined(TEST_IF_ALT)']
352 object q_obj_TestIfCmd-arg
353 member foo: TestIfStruct optional=False
354 member bar: TestIfEnum optional=False
355 if ['defined(TEST_IF_CMD_BAR)']
356 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
357 command TestIfCmd q_obj_TestIfCmd-arg -> UserDefThree
358 gen=True success_response=True boxed=False oob=False preconfig=False
359 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
360 command TestCmdReturnDefThree None -> UserDefThree
361 gen=True success_response=True boxed=False oob=False preconfig=False
362 array TestIfEnumList TestIfEnum
363 if ['defined(TEST_IF_ENUM)']
364 object q_obj_TestIfEvent-arg
365 member foo: TestIfStruct optional=False
366 member bar: TestIfEnumList optional=False
367 if ['defined(TEST_IF_EVT_BAR)']
368 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
369 event TestIfEvent q_obj_TestIfEvent-arg
371 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
372 object FeatureStruct0
373 member foo: int optional=False
374 object FeatureStruct1
375 member foo: int optional=False
377 object FeatureStruct2
378 member foo: int optional=False
380 object FeatureStruct3
381 member foo: int optional=False
384 object FeatureStruct4
385 member namespace-test: int optional=False
386 feature namespace-test
390 object CondFeatureStruct1
391 member foo: int optional=False
393 if ['defined(TEST_IF_FEATURE_1)']
394 object CondFeatureStruct2
395 member foo: int optional=False
397 if ['defined(TEST_IF_FEATURE_1)']
399 if ['defined(TEST_IF_FEATURE_2)']
400 object CondFeatureStruct3
401 member foo: int optional=False
403 if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']
404 object q_obj_test-features-arg
405 member fs0: FeatureStruct0 optional=False
406 member fs1: FeatureStruct1 optional=False
407 member fs2: FeatureStruct2 optional=False
408 member fs3: FeatureStruct3 optional=False
409 member fs4: FeatureStruct4 optional=False
410 member cfs1: CondFeatureStruct1 optional=False
411 member cfs2: CondFeatureStruct2 optional=False
412 member cfs3: CondFeatureStruct3 optional=False
413 command test-features q_obj_test-features-arg -> None
414 gen=True success_response=True boxed=False oob=False preconfig=False
415 command test-command-features0 None -> None
416 gen=True success_response=True boxed=False oob=False preconfig=False
417 command test-command-features1 None -> None
418 gen=True success_response=True boxed=False oob=False preconfig=False
420 command test-command-features3 None -> None
421 gen=True success_response=True boxed=False oob=False preconfig=False
424 command test-command-cond-features1 None -> None
425 gen=True success_response=True boxed=False oob=False preconfig=False
427 if ['defined(TEST_IF_FEATURE_1)']
428 command test-command-cond-features2 None -> None
429 gen=True success_response=True boxed=False oob=False preconfig=False
431 if ['defined(TEST_IF_FEATURE_1)']
433 if ['defined(TEST_IF_FEATURE_2)']
434 command test-command-cond-features3 None -> None
435 gen=True success_response=True boxed=False oob=False preconfig=False
437 if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']