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
133 member integer: intList optional=False
134 member s8: int8List optional=False
135 member s16: int16List optional=False
136 member s32: int32List optional=False
137 member s64: int64List optional=False
138 member u8: uint8List optional=False
139 member u16: uint16List optional=False
140 member u32: uint32List optional=False
141 member u64: uint64List optional=False
142 member number: numberList optional=False
143 member boolean: boolList optional=False
144 member string: strList optional=False
145 member sz: sizeList optional=True
146 member any: anyList optional=True
147 member user: StatusList optional=True
148 include include/sub-module.json
149 command user-def-cmd None -> None
150 gen=True success_response=True boxed=False oob=False preconfig=False
151 object q_obj_user-def-cmd1-arg
152 member ud1a: UserDefOne optional=False
153 command user-def-cmd1 q_obj_user-def-cmd1-arg -> None
154 gen=True success_response=True boxed=False oob=False preconfig=False
155 object q_obj_user-def-cmd2-arg
156 member ud1a: UserDefOne optional=False
157 member ud1b: UserDefOne optional=True
158 command user-def-cmd2 q_obj_user-def-cmd2-arg -> UserDefTwo
159 gen=True success_response=True boxed=False oob=False preconfig=False
160 command cmd-success-response None -> None
161 gen=True success_response=False boxed=False oob=False preconfig=False
162 command coroutine-cmd None -> None
163 gen=True success_response=True boxed=False oob=False preconfig=False coroutine=True
164 object q_obj_guest-get-time-arg
165 member a: int optional=False
166 member b: int optional=True
167 command guest-get-time q_obj_guest-get-time-arg -> int
168 gen=True success_response=True boxed=False oob=False preconfig=False
169 object q_obj_guest-sync-arg
170 member arg: any optional=False
171 command guest-sync q_obj_guest-sync-arg -> any
172 gen=True success_response=True boxed=False oob=False preconfig=False
173 command boxed-struct UserDefZero -> None
174 gen=True success_response=True boxed=True oob=False preconfig=False
175 command boxed-union UserDefFlatUnion -> None
176 gen=True success_response=True boxed=True oob=False preconfig=False
177 command boxed-empty Empty1 -> None
178 gen=True success_response=True boxed=True oob=False preconfig=False
179 command test-flags-command None -> None
180 gen=True success_response=True boxed=False oob=True preconfig=True
181 object UserDefOptions
182 member i64: intList optional=True
183 member u64: uint64List optional=True
184 member u16: uint16List optional=True
185 member i64x: int optional=True
186 member u64x: uint64 optional=True
187 object EventStructOne
188 member struct1: UserDefOne optional=False
189 member string: str optional=False
190 member enum2: EnumOne optional=True
195 object q_obj_EVENT_C-arg
196 member a: int optional=True
197 member b: UserDefOne optional=True
198 member c: str optional=False
199 event EVENT_C q_obj_EVENT_C-arg
201 object q_obj_EVENT_D-arg
202 member a: EventStructOne optional=False
203 member b: str optional=False
204 member c: str optional=True
205 member enum3: EnumOne optional=True
206 event EVENT_D q_obj_EVENT_D-arg
208 event EVENT_E UserDefZero
210 event EVENT_F UserDefFlatUnion
214 enum __org.qemu_x-Enum
215 member __org.qemu_x-value
216 object __org.qemu_x-Base
217 member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
218 object __org.qemu_x-Struct
219 base __org.qemu_x-Base
220 member __org.qemu_x-member2: str optional=False
221 member wchar-t: int optional=True
222 alternate __org.qemu_x-Alt1
224 case __org.qemu_x-branch: str
225 array __org.qemu_x-UnionList __org.qemu_x-Union
226 object __org.qemu_x-Struct2
227 member array: __org.qemu_x-UnionList optional=False
228 object __org.qemu_x-Union
229 base __org.qemu_x-Base
230 tag __org.qemu_x-member1
231 case __org.qemu_x-value: __org.qemu_x-Struct2
232 alternate __org.qemu_x-Alt
234 case __org.qemu_x-branch: __org.qemu_x-Base
235 event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
237 array __org.qemu_x-EnumList __org.qemu_x-Enum
238 array __org.qemu_x-StructList __org.qemu_x-Struct
239 object q_obj___org.qemu_x-command-arg
240 member a: __org.qemu_x-EnumList optional=False
241 member b: __org.qemu_x-StructList optional=False
242 member c: __org.qemu_x-Union optional=False
243 member d: __org.qemu_x-Alt optional=False
244 command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> None
245 gen=True success_response=True boxed=False oob=False preconfig=False
247 member foo: int optional=False
248 member bar: int optional=False
249 if TEST_IF_STRUCT_MEMBER
250 member baz: str optional=True
251 if TEST_IF_STRUCT_MEMBER
256 if TEST_IF_ENUM_MEMBER
258 object q_obj_TestIfUnion-base
259 member type: TestIfEnum optional=False
260 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
262 base q_obj_TestIfUnion-base
265 case bar: UserDefZero
266 if TEST_IF_ENUM_MEMBER
267 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
268 object q_obj_test-if-union-cmd-arg
269 member union-cmd-arg: TestIfUnion optional=False
270 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
271 command test-if-union-cmd q_obj_test-if-union-cmd-arg -> None
272 gen=True success_response=True boxed=False oob=False preconfig=False
273 if {'all': ['TEST_IF_UNION', 'TEST_IF_STRUCT']}
274 alternate TestIfAlternate
278 if TEST_IF_ALT_MEMBER
279 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
280 object q_obj_test-if-alternate-cmd-arg
281 member alt-cmd-arg: TestIfAlternate optional=False
282 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
283 command test-if-alternate-cmd q_obj_test-if-alternate-cmd-arg -> None
284 gen=True success_response=True boxed=False oob=False preconfig=False
285 if {'all': ['TEST_IF_ALT', 'TEST_IF_STRUCT']}
286 object q_obj_test-if-cmd-arg
287 member foo: TestIfStruct optional=False
288 member bar: str optional=False
290 if {'all': ['TEST_IF_CMD', 'TEST_IF_STRUCT']}
291 command test-if-cmd q_obj_test-if-cmd-arg -> UserDefThree
292 gen=True success_response=True boxed=False oob=False preconfig=False
293 if {'all': ['TEST_IF_CMD', 'TEST_IF_STRUCT']}
294 command test-cmd-return-def-three None -> UserDefThree
295 gen=True success_response=True boxed=False oob=False preconfig=False
296 object q_obj_TEST_IF_EVENT-arg
297 member foo: TestIfStruct optional=False
298 member bar: strList optional=False
300 if {'all': ['TEST_IF_EVT', 'TEST_IF_STRUCT']}
301 event TEST_IF_EVENT q_obj_TEST_IF_EVENT-arg
303 if {'all': ['TEST_IF_EVT', 'TEST_IF_STRUCT']}
304 event TEST_IF_EVENT2 None
306 if {'not': {'any': [{'not': 'TEST_IF_EVT'}, {'not': 'TEST_IF_STRUCT'}]}}
307 object FeatureStruct0
308 member foo: int optional=False
309 object FeatureStruct1
310 member foo: int optional=False
313 object FeatureStruct2
314 member foo: int optional=False
317 object FeatureStruct3
318 member foo: int optional=False
321 object FeatureStruct4
322 member namespace-test: int optional=False
323 feature namespace-test
327 object CondFeatureStruct1
328 member foo: int optional=False
331 object CondFeatureStruct2
332 member foo: int optional=False
337 object CondFeatureStruct3
338 member foo: int optional=False
340 if {'all': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
341 object CondFeatureStruct4
342 member foo: int optional=False
344 if {'any': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
351 object q_obj_FeatureUnion1-base
352 member tag: FeatureEnum1 optional=False
354 base q_obj_FeatureUnion1-base
356 case eins: FeatureStruct1
360 alternate FeatureAlternate1
362 case eins: FeatureStruct1
364 object q_obj_test-features0-arg
365 member fs0: FeatureStruct0 optional=True
366 member fs1: FeatureStruct1 optional=True
367 member fs2: FeatureStruct2 optional=True
368 member fs3: FeatureStruct3 optional=True
369 member fs4: FeatureStruct4 optional=True
370 member cfs1: CondFeatureStruct1 optional=True
371 member cfs2: CondFeatureStruct2 optional=True
372 member cfs3: CondFeatureStruct3 optional=True
373 member cfs4: CondFeatureStruct4 optional=True
374 command test-features0 q_obj_test-features0-arg -> FeatureStruct1
375 gen=True success_response=True boxed=False oob=False preconfig=False
376 command test-command-features1 None -> None
377 gen=True success_response=True boxed=False oob=False preconfig=False
379 command test-command-features3 None -> None
380 gen=True success_response=True boxed=False oob=False preconfig=False
384 command test-command-cond-features1 None -> None
385 gen=True success_response=True boxed=False oob=False preconfig=False
388 command test-command-cond-features2 None -> None
389 gen=True success_response=True boxed=False oob=False preconfig=False
394 command test-command-cond-features3 None -> None
395 gen=True success_response=True boxed=False oob=False preconfig=False
397 if {'all': ['TEST_IF_COND_1', 'TEST_IF_COND_2']}
398 event TEST_EVENT_FEATURES0 FeatureStruct1
400 event TEST_EVENT_FEATURES1 None
403 event TEST_EVENT_FEATURES2 None
406 module include/sub-module.json
407 include sub-sub-module.json
408 object SecondArrayRef
409 member s: StatusList optional=False
410 module sub-sub-module.json
411 array StatusList Status