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 object q_obj_guest-get-time-arg
207 member a: int optional=False
208 member b: int optional=True
209 command guest-get-time q_obj_guest-get-time-arg -> int
210 gen=True success_response=True boxed=False oob=False preconfig=False
211 object q_obj_guest-sync-arg
212 member arg: any optional=False
213 command guest-sync q_obj_guest-sync-arg -> any
214 gen=True success_response=True boxed=False oob=False preconfig=False
215 command boxed-struct UserDefZero -> None
216 gen=True success_response=True boxed=True oob=False preconfig=False
217 command boxed-union UserDefListUnion -> None
218 gen=True success_response=True boxed=True oob=False preconfig=False
219 command boxed-empty Empty1 -> None
220 gen=True success_response=True boxed=True oob=False preconfig=False
221 command test-flags-command None -> None
222 gen=True success_response=True boxed=False oob=True preconfig=True
223 object UserDefOptions
224 member i64: intList optional=True
225 member u64: uint64List optional=True
226 member u16: uint16List optional=True
227 member i64x: int optional=True
228 member u64x: uint64 optional=True
229 object EventStructOne
230 member struct1: UserDefOne optional=False
231 member string: str optional=False
232 member enum2: EnumOne optional=True
237 object q_obj_EVENT_C-arg
238 member a: int optional=True
239 member b: UserDefOne optional=True
240 member c: str optional=False
241 event EVENT_C q_obj_EVENT_C-arg
243 object q_obj_EVENT_D-arg
244 member a: EventStructOne optional=False
245 member b: str optional=False
246 member c: str optional=True
247 member enum3: EnumOne optional=True
248 event EVENT_D q_obj_EVENT_D-arg
250 event EVENT_E UserDefZero
252 event EVENT_F UserDefFlatUnion
256 enum __org.qemu_x-Enum
257 member __org.qemu_x-value
258 object __org.qemu_x-Base
259 member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
260 object __org.qemu_x-Struct
261 base __org.qemu_x-Base
262 member __org.qemu_x-member2: str optional=False
263 member wchar-t: int optional=True
264 object q_obj_str-wrapper
265 member data: str optional=False
266 enum __org.qemu_x-Union1Kind
267 member __org.qemu_x-branch
268 object __org.qemu_x-Union1
269 member type: __org.qemu_x-Union1Kind optional=False
271 case __org.qemu_x-branch: q_obj_str-wrapper
272 alternate __org.qemu_x-Alt1
274 case __org.qemu_x-branch: str
275 array __org.qemu_x-Union1List __org.qemu_x-Union1
276 object __org.qemu_x-Struct2
277 member array: __org.qemu_x-Union1List optional=False
278 object __org.qemu_x-Union2
279 base __org.qemu_x-Base
280 tag __org.qemu_x-member1
281 case __org.qemu_x-value: __org.qemu_x-Struct2
282 alternate __org.qemu_x-Alt
284 case __org.qemu_x-branch: __org.qemu_x-Base
285 event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
287 array __org.qemu_x-EnumList __org.qemu_x-Enum
288 array __org.qemu_x-StructList __org.qemu_x-Struct
289 object q_obj___org.qemu_x-command-arg
290 member a: __org.qemu_x-EnumList optional=False
291 member b: __org.qemu_x-StructList optional=False
292 member c: __org.qemu_x-Union2 optional=False
293 member d: __org.qemu_x-Alt optional=False
294 command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> __org.qemu_x-Union1
295 gen=True success_response=True boxed=False oob=False preconfig=False
297 member foo: int optional=False
298 member bar: int optional=False
299 if ['defined(TEST_IF_STRUCT_BAR)']
300 if ['defined(TEST_IF_STRUCT)']
304 if ['defined(TEST_IF_ENUM_BAR)']
305 if ['defined(TEST_IF_ENUM)']
306 object q_obj_TestStruct-wrapper
307 member data: TestStruct optional=False
311 if ['defined(TEST_IF_UNION_BAR)']
312 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
314 member type: TestIfUnionKind optional=False
316 case foo: q_obj_TestStruct-wrapper
317 case union_bar: q_obj_str-wrapper
318 if ['defined(TEST_IF_UNION_BAR)']
319 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
320 object q_obj_TestIfUnionCmd-arg
321 member union_cmd_arg: TestIfUnion optional=False
322 if ['defined(TEST_IF_UNION)']
323 command TestIfUnionCmd q_obj_TestIfUnionCmd-arg -> None
324 gen=True success_response=True boxed=False oob=False preconfig=False
325 if ['defined(TEST_IF_UNION)']
326 alternate TestIfAlternate
330 if ['defined(TEST_IF_ALT_BAR)']
331 if ['defined(TEST_IF_ALT) && defined(TEST_IF_STRUCT)']
332 object q_obj_TestIfAlternateCmd-arg
333 member alt_cmd_arg: TestIfAlternate optional=False
334 if ['defined(TEST_IF_ALT)']
335 command TestIfAlternateCmd q_obj_TestIfAlternateCmd-arg -> None
336 gen=True success_response=True boxed=False oob=False preconfig=False
337 if ['defined(TEST_IF_ALT)']
338 object q_obj_TestIfCmd-arg
339 member foo: TestIfStruct optional=False
340 member bar: TestIfEnum optional=False
341 if ['defined(TEST_IF_CMD_BAR)']
342 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
343 command TestIfCmd q_obj_TestIfCmd-arg -> UserDefThree
344 gen=True success_response=True boxed=False oob=False preconfig=False
345 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
346 command TestCmdReturnDefThree None -> UserDefThree
347 gen=True success_response=True boxed=False oob=False preconfig=False
348 array TestIfEnumList TestIfEnum
349 if ['defined(TEST_IF_ENUM)']
350 object q_obj_TestIfEvent-arg
351 member foo: TestIfStruct optional=False
352 member bar: TestIfEnumList optional=False
353 if ['defined(TEST_IF_EVT_BAR)']
354 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
355 event TestIfEvent q_obj_TestIfEvent-arg
357 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
358 object FeatureStruct0
359 member foo: int optional=False
360 object FeatureStruct1
361 member foo: int optional=False
364 object FeatureStruct2
365 member foo: int optional=False
367 object FeatureStruct3
368 member foo: int optional=False
371 object FeatureStruct4
372 member namespace-test: int optional=False
373 feature namespace-test
377 object CondFeatureStruct1
378 member foo: int optional=False
380 if ['defined(TEST_IF_FEATURE_1)']
381 object CondFeatureStruct2
382 member foo: int optional=False
384 if ['defined(TEST_IF_FEATURE_1)']
386 if ['defined(TEST_IF_FEATURE_2)']
387 object CondFeatureStruct3
388 member foo: int optional=False
390 if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']
396 object q_obj_FeatureUnion1-base
397 member tag: FeatureEnum1 optional=False
399 base q_obj_FeatureUnion1-base
401 case eins: FeatureStruct1
405 alternate FeatureAlternate1
407 case eins: FeatureStruct1
409 object q_obj_test-features0-arg
410 member fs0: FeatureStruct0 optional=False
411 member fs1: FeatureStruct1 optional=False
412 member fs2: FeatureStruct2 optional=False
413 member fs3: FeatureStruct3 optional=False
414 member fs4: FeatureStruct4 optional=False
415 member cfs1: CondFeatureStruct1 optional=False
416 member cfs2: CondFeatureStruct2 optional=False
417 member cfs3: CondFeatureStruct3 optional=False
418 command test-features0 q_obj_test-features0-arg -> None
419 gen=True success_response=True boxed=False oob=False preconfig=False
420 command test-command-features1 None -> None
421 gen=True success_response=True boxed=False oob=False preconfig=False
423 command test-command-features3 None -> None
424 gen=True success_response=True boxed=False oob=False preconfig=False
427 command test-command-cond-features1 None -> None
428 gen=True success_response=True boxed=False oob=False preconfig=False
430 if ['defined(TEST_IF_FEATURE_1)']
431 command test-command-cond-features2 None -> None
432 gen=True success_response=True boxed=False oob=False preconfig=False
434 if ['defined(TEST_IF_FEATURE_1)']
436 if ['defined(TEST_IF_FEATURE_2)']
437 command test-command-cond-features3 None -> None
438 gen=True success_response=True boxed=False oob=False preconfig=False
440 if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']
441 event TEST-EVENT-FEATURES1 None
444 module include/sub-module.json
445 include sub-sub-module.json
446 object SecondArrayRef
447 member s: StatusList optional=False
448 module sub-sub-module.json
449 array StatusList Status