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 command user_def_cmd0 Empty2 -> Empty2
27 gen=True success_response=True boxed=False oob=False preconfig=False
34 member string: str optional=False
35 member enum1: EnumOne optional=True
42 member integer: int optional=False
43 object UserDefTwoDictDict
44 member userdef: UserDefOne optional=False
45 member string: str optional=False
47 member string1: str optional=False
48 member dict2: UserDefTwoDictDict optional=False
49 member dict3: UserDefTwoDictDict optional=True
51 member string0: str optional=False
52 member dict1: UserDefTwoDict optional=False
54 member string0: str optional=False
55 array UserDefOneList UserDefOne
56 array UserDefTwoList UserDefTwo
57 array TestStructList TestStruct
59 member unused1: UserDefOneList optional=False
60 member unused2: UserDefTwoList optional=False
61 member unused3: TestStructList optional=False
63 member boolean: bool optional=False
64 member a_b: int optional=True
66 member intb: int optional=False
67 member a-b: bool optional=True
68 object UserDefFlatUnion
75 object UserDefUnionBase
77 member string: str optional=False
78 member enum1: EnumOne optional=False
79 object q_obj_UserDefFlatUnion2-base
80 member integer: int optional=True
81 member string: str optional=False
82 member enum1: QEnumTwo optional=False
83 object UserDefFlatUnion2
84 base q_obj_UserDefFlatUnion2-base
89 member alt: UserDefAlternate optional=False
90 alternate UserDefAlternate
92 case udfu: UserDefFlatUnion
97 member string1: str optional=False
98 member string2: str optional=False
119 object q_obj_intList-wrapper
120 member data: intList optional=False
121 object q_obj_int8List-wrapper
122 member data: int8List optional=False
123 object q_obj_int16List-wrapper
124 member data: int16List optional=False
125 object q_obj_int32List-wrapper
126 member data: int32List optional=False
127 object q_obj_int64List-wrapper
128 member data: int64List optional=False
129 object q_obj_uint8List-wrapper
130 member data: uint8List optional=False
131 object q_obj_uint16List-wrapper
132 member data: uint16List optional=False
133 object q_obj_uint32List-wrapper
134 member data: uint32List optional=False
135 object q_obj_uint64List-wrapper
136 member data: uint64List optional=False
137 object q_obj_numberList-wrapper
138 member data: numberList optional=False
139 object q_obj_boolList-wrapper
140 member data: boolList optional=False
141 object q_obj_strList-wrapper
142 member data: strList optional=False
143 object q_obj_sizeList-wrapper
144 member data: sizeList optional=False
145 object q_obj_anyList-wrapper
146 member data: anyList optional=False
147 module sub-sub-module.json
148 array StatusList Status
149 module qapi-schema-test.json
150 object q_obj_StatusList-wrapper
151 member data: StatusList optional=False
152 enum UserDefListUnionKind
168 object UserDefListUnion
169 member type: UserDefListUnionKind optional=False
171 case integer: q_obj_intList-wrapper
172 case s8: q_obj_int8List-wrapper
173 case s16: q_obj_int16List-wrapper
174 case s32: q_obj_int32List-wrapper
175 case s64: q_obj_int64List-wrapper
176 case u8: q_obj_uint8List-wrapper
177 case u16: q_obj_uint16List-wrapper
178 case u32: q_obj_uint32List-wrapper
179 case u64: q_obj_uint64List-wrapper
180 case number: q_obj_numberList-wrapper
181 case boolean: q_obj_boolList-wrapper
182 case string: q_obj_strList-wrapper
183 case sizes: q_obj_sizeList-wrapper
184 case any: q_obj_anyList-wrapper
185 case user: q_obj_StatusList-wrapper
186 include include/sub-module.json
187 module include/sub-module.json
188 include sub-sub-module.json
189 module sub-sub-module.json
194 module include/sub-module.json
195 object SecondArrayRef
196 member s: StatusList optional=False
197 module qapi-schema-test.json
198 command user_def_cmd None -> None
199 gen=True success_response=True boxed=False oob=False preconfig=False
200 object q_obj_user_def_cmd1-arg
201 member ud1a: UserDefOne optional=False
202 command user_def_cmd1 q_obj_user_def_cmd1-arg -> None
203 gen=True success_response=True boxed=False oob=False preconfig=False
204 object q_obj_user_def_cmd2-arg
205 member ud1a: UserDefOne optional=False
206 member ud1b: UserDefOne optional=True
207 command user_def_cmd2 q_obj_user_def_cmd2-arg -> UserDefTwo
208 gen=True success_response=True boxed=False oob=False preconfig=False
209 command cmd-success-response None -> None
210 gen=True success_response=False boxed=False oob=False preconfig=False
211 object q_obj_guest-get-time-arg
212 member a: int optional=False
213 member b: int optional=True
214 command guest-get-time q_obj_guest-get-time-arg -> int
215 gen=True success_response=True boxed=False oob=False preconfig=False
216 object q_obj_guest-sync-arg
217 member arg: any optional=False
218 command guest-sync q_obj_guest-sync-arg -> any
219 gen=True success_response=True boxed=False oob=False preconfig=False
220 command boxed-struct UserDefZero -> None
221 gen=True success_response=True boxed=True oob=False preconfig=False
222 command boxed-union UserDefListUnion -> None
223 gen=True success_response=True boxed=True oob=False preconfig=False
224 command test-flags-command None -> None
225 gen=True success_response=True boxed=False oob=True preconfig=True
226 object UserDefOptions
227 member i64: intList optional=True
228 member u64: uint64List optional=True
229 member u16: uint16List optional=True
230 member i64x: int optional=True
231 member u64x: uint64 optional=True
232 object EventStructOne
233 member struct1: UserDefOne optional=False
234 member string: str optional=False
235 member enum2: EnumOne optional=True
240 object q_obj_EVENT_C-arg
241 member a: int optional=True
242 member b: UserDefOne optional=True
243 member c: str optional=False
244 event EVENT_C q_obj_EVENT_C-arg
246 object q_obj_EVENT_D-arg
247 member a: EventStructOne optional=False
248 member b: str optional=False
249 member c: str optional=True
250 member enum3: EnumOne optional=True
251 event EVENT_D q_obj_EVENT_D-arg
253 event EVENT_E UserDefZero
255 event EVENT_F UserDefAlternate
257 enum __org.qemu_x-Enum
258 member __org.qemu_x-value
259 object __org.qemu_x-Base
260 member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
261 object __org.qemu_x-Struct
262 base __org.qemu_x-Base
263 member __org.qemu_x-member2: str optional=False
264 member wchar-t: int optional=True
265 object q_obj_str-wrapper
266 member data: str optional=False
267 enum __org.qemu_x-Union1Kind
268 member __org.qemu_x-branch
269 object __org.qemu_x-Union1
270 member type: __org.qemu_x-Union1Kind optional=False
272 case __org.qemu_x-branch: q_obj_str-wrapper
273 array __org.qemu_x-Union1List __org.qemu_x-Union1
274 object __org.qemu_x-Struct2
275 member array: __org.qemu_x-Union1List optional=False
276 object __org.qemu_x-Union2
277 base __org.qemu_x-Base
278 tag __org.qemu_x-member1
279 case __org.qemu_x-value: __org.qemu_x-Struct2
280 alternate __org.qemu_x-Alt
282 case __org.qemu_x-branch: str
283 case b: __org.qemu_x-Base
284 event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
286 array __org.qemu_x-EnumList __org.qemu_x-Enum
287 array __org.qemu_x-StructList __org.qemu_x-Struct
288 object q_obj___org.qemu_x-command-arg
289 member a: __org.qemu_x-EnumList optional=False
290 member b: __org.qemu_x-StructList optional=False
291 member c: __org.qemu_x-Union2 optional=False
292 member d: __org.qemu_x-Alt optional=False
293 command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> __org.qemu_x-Union1
294 gen=True success_response=True boxed=False oob=False preconfig=False
296 member foo: int optional=False
297 member bar: int optional=False
298 if ['defined(TEST_IF_STRUCT_BAR)']
299 if ['defined(TEST_IF_STRUCT)']
303 if ['defined(TEST_IF_ENUM_BAR)']
304 if ['defined(TEST_IF_ENUM)']
305 object q_obj_TestStruct-wrapper
306 member data: TestStruct optional=False
310 if ['defined(TEST_IF_UNION_BAR)']
311 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
313 member type: TestIfUnionKind optional=False
315 case foo: q_obj_TestStruct-wrapper
316 case union_bar: q_obj_str-wrapper
317 if ['defined(TEST_IF_UNION_BAR)']
318 if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
319 object q_obj_TestIfUnionCmd-arg
320 member union_cmd_arg: TestIfUnion optional=False
321 if ['defined(TEST_IF_UNION)']
322 command TestIfUnionCmd q_obj_TestIfUnionCmd-arg -> None
323 gen=True success_response=True boxed=False oob=False preconfig=False
324 if ['defined(TEST_IF_UNION)']
325 alternate TestIfAlternate
329 if ['defined(TEST_IF_ALT_BAR)']
330 if ['defined(TEST_IF_ALT) && defined(TEST_IF_STRUCT)']
331 object q_obj_TestIfAlternateCmd-arg
332 member alt_cmd_arg: TestIfAlternate optional=False
333 if ['defined(TEST_IF_ALT)']
334 command TestIfAlternateCmd q_obj_TestIfAlternateCmd-arg -> None
335 gen=True success_response=True boxed=False oob=False preconfig=False
336 if ['defined(TEST_IF_ALT)']
337 object q_obj_TestIfCmd-arg
338 member foo: TestIfStruct optional=False
339 member bar: TestIfEnum optional=False
340 if ['defined(TEST_IF_CMD_BAR)']
341 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
342 command TestIfCmd q_obj_TestIfCmd-arg -> UserDefThree
343 gen=True success_response=True boxed=False oob=False preconfig=False
344 if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
345 command TestCmdReturnDefThree None -> UserDefThree
346 gen=True success_response=True boxed=False oob=False preconfig=False
347 array TestIfEnumList TestIfEnum
348 if ['defined(TEST_IF_ENUM)']
349 object q_obj_TestIfEvent-arg
350 member foo: TestIfStruct optional=False
351 member bar: TestIfEnumList optional=False
352 if ['defined(TEST_IF_EVT_BAR)']
353 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
354 event TestIfEvent q_obj_TestIfEvent-arg
356 if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
357 object FeatureStruct0
358 member foo: int optional=False
359 object FeatureStruct1
360 member foo: int optional=False
362 object FeatureStruct2
363 member foo: int optional=False
365 object FeatureStruct3
366 member foo: int optional=False
369 object FeatureStruct4
370 member namespace-test: int optional=False
371 feature namespace-test
375 object CondFeatureStruct1
376 member foo: int optional=False
378 if ['defined(TEST_IF_FEATURE_1)']
379 object CondFeatureStruct2
380 member foo: int optional=False
382 if ['defined(TEST_IF_FEATURE_1)']
384 if ['defined(TEST_IF_FEATURE_2)']
385 object CondFeatureStruct3
386 member foo: int optional=False
388 if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']
389 object q_obj_test-features-arg
390 member fs0: FeatureStruct0 optional=False
391 member fs1: FeatureStruct1 optional=False
392 member fs2: FeatureStruct2 optional=False
393 member fs3: FeatureStruct3 optional=False
394 member fs4: FeatureStruct4 optional=False
395 member cfs1: CondFeatureStruct1 optional=False
396 member cfs2: CondFeatureStruct2 optional=False
397 member cfs3: CondFeatureStruct3 optional=False
398 command test-features q_obj_test-features-arg -> None
399 gen=True success_response=True boxed=False oob=False preconfig=False