1module None
2object q_empty
3enum QType
4    prefix QTYPE
5    member none
6    member qnull
7    member qnum
8    member qstring
9    member qdict
10    member qlist
11    member qbool
12module qapi-schema-test.json
13object TestStruct
14    member integer: int optional=False
15    member boolean: bool optional=False
16    member string: str optional=False
17object NestedEnumsOne
18    member enum1: EnumOne optional=False
19    member enum2: EnumOne optional=True
20    member enum3: EnumOne optional=False
21    member enum4: EnumOne optional=True
22enum MyEnum
23object Empty1
24object Empty2
25    base Empty1
26command user_def_cmd0 Empty2 -> Empty2
27   gen=True success_response=True boxed=False oob=False preconfig=False
28enum QEnumTwo
29    prefix QENUM_TWO
30    member value1
31    member value2
32object UserDefOne
33    base UserDefZero
34    member string: str optional=False
35    member enum1: EnumOne optional=True
36enum EnumOne
37    member value1
38    member value2
39    member value3
40    member value4
41object UserDefZero
42    member integer: int optional=False
43object UserDefTwoDictDict
44    member userdef: UserDefOne optional=False
45    member string: str optional=False
46object UserDefTwoDict
47    member string1: str optional=False
48    member dict2: UserDefTwoDictDict optional=False
49    member dict3: UserDefTwoDictDict optional=True
50object UserDefTwo
51    member string0: str optional=False
52    member dict1: UserDefTwoDict optional=False
53object UserDefThree
54    member string0: str optional=False
55array UserDefOneList UserDefOne
56array UserDefTwoList UserDefTwo
57array TestStructList TestStruct
58object ForceArrays
59    member unused1: UserDefOneList optional=False
60    member unused2: UserDefTwoList optional=False
61    member unused3: TestStructList optional=False
62object UserDefA
63    member boolean: bool optional=False
64    member a_b: int optional=True
65object UserDefB
66    member intb: int optional=False
67    member a-b: bool optional=True
68object UserDefFlatUnion
69    base UserDefUnionBase
70    tag enum1
71    case value1: UserDefA
72    case value2: UserDefB
73    case value3: UserDefB
74    case value4: q_empty
75object UserDefUnionBase
76    base UserDefZero
77    member string: str optional=False
78    member enum1: EnumOne optional=False
79object q_obj_UserDefFlatUnion2-base
80    member integer: int optional=True
81    member string: str optional=False
82    member enum1: QEnumTwo optional=False
83object UserDefFlatUnion2
84    base q_obj_UserDefFlatUnion2-base
85    tag enum1
86    case value1: UserDefC
87    case value2: UserDefB
88object WrapAlternate
89    member alt: UserDefAlternate optional=False
90alternate UserDefAlternate
91    tag type
92    case udfu: UserDefFlatUnion
93    case e: EnumOne
94    case i: int
95    case n: null
96object UserDefC
97    member string1: str optional=False
98    member string2: str optional=False
99alternate AltEnumBool
100    tag type
101    case e: EnumOne
102    case b: bool
103alternate AltEnumNum
104    tag type
105    case e: EnumOne
106    case n: number
107alternate AltNumEnum
108    tag type
109    case n: number
110    case e: EnumOne
111alternate AltEnumInt
112    tag type
113    case e: EnumOne
114    case i: int
115alternate AltStrObj
116    tag type
117    case s: str
118    case o: TestStruct
119object q_obj_intList-wrapper
120    member data: intList optional=False
121object q_obj_int8List-wrapper
122    member data: int8List optional=False
123object q_obj_int16List-wrapper
124    member data: int16List optional=False
125object q_obj_int32List-wrapper
126    member data: int32List optional=False
127object q_obj_int64List-wrapper
128    member data: int64List optional=False
129object q_obj_uint8List-wrapper
130    member data: uint8List optional=False
131object q_obj_uint16List-wrapper
132    member data: uint16List optional=False
133object q_obj_uint32List-wrapper
134    member data: uint32List optional=False
135object q_obj_uint64List-wrapper
136    member data: uint64List optional=False
137object q_obj_numberList-wrapper
138    member data: numberList optional=False
139object q_obj_boolList-wrapper
140    member data: boolList optional=False
141object q_obj_strList-wrapper
142    member data: strList optional=False
143object q_obj_sizeList-wrapper
144    member data: sizeList optional=False
145object q_obj_anyList-wrapper
146    member data: anyList optional=False
147module sub-sub-module.json
148array StatusList Status
149module qapi-schema-test.json
150object q_obj_StatusList-wrapper
151    member data: StatusList optional=False
152enum UserDefListUnionKind
153    member integer
154    member s8
155    member s16
156    member s32
157    member s64
158    member u8
159    member u16
160    member u32
161    member u64
162    member number
163    member boolean
164    member string
165    member sizes
166    member any
167    member user
168object UserDefListUnion
169    member type: UserDefListUnionKind optional=False
170    tag type
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
186include include/sub-module.json
187module include/sub-module.json
188include sub-sub-module.json
189module sub-sub-module.json
190enum Status
191    member good
192    member bad
193    member ugly
194module include/sub-module.json
195object SecondArrayRef
196    member s: StatusList optional=False
197module qapi-schema-test.json
198command user_def_cmd None -> None
199   gen=True success_response=True boxed=False oob=False preconfig=False
200object q_obj_user_def_cmd1-arg
201    member ud1a: UserDefOne optional=False
202command user_def_cmd1 q_obj_user_def_cmd1-arg -> None
203   gen=True success_response=True boxed=False oob=False preconfig=False
204object q_obj_user_def_cmd2-arg
205    member ud1a: UserDefOne optional=False
206    member ud1b: UserDefOne optional=True
207command user_def_cmd2 q_obj_user_def_cmd2-arg -> UserDefTwo
208   gen=True success_response=True boxed=False oob=False preconfig=False
209command cmd-success-response None -> None
210   gen=True success_response=False boxed=False oob=False preconfig=False
211object q_obj_guest-get-time-arg
212    member a: int optional=False
213    member b: int optional=True
214command guest-get-time q_obj_guest-get-time-arg -> int
215   gen=True success_response=True boxed=False oob=False preconfig=False
216object q_obj_guest-sync-arg
217    member arg: any optional=False
218command guest-sync q_obj_guest-sync-arg -> any
219   gen=True success_response=True boxed=False oob=False preconfig=False
220command boxed-struct UserDefZero -> None
221   gen=True success_response=True boxed=True oob=False preconfig=False
222command boxed-union UserDefListUnion -> None
223   gen=True success_response=True boxed=True oob=False preconfig=False
224command test-flags-command None -> None
225   gen=True success_response=True boxed=False oob=True preconfig=True
226object 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
232object EventStructOne
233    member struct1: UserDefOne optional=False
234    member string: str optional=False
235    member enum2: EnumOne optional=True
236event EVENT_A None
237   boxed=False
238event EVENT_B None
239   boxed=False
240object q_obj_EVENT_C-arg
241    member a: int optional=True
242    member b: UserDefOne optional=True
243    member c: str optional=False
244event EVENT_C q_obj_EVENT_C-arg
245   boxed=False
246object 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
251event EVENT_D q_obj_EVENT_D-arg
252   boxed=False
253event EVENT_E UserDefZero
254   boxed=True
255event EVENT_F UserDefAlternate
256   boxed=True
257enum __org.qemu_x-Enum
258    member __org.qemu_x-value
259object __org.qemu_x-Base
260    member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
261object __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
265object q_obj_str-wrapper
266    member data: str optional=False
267enum __org.qemu_x-Union1Kind
268    member __org.qemu_x-branch
269object __org.qemu_x-Union1
270    member type: __org.qemu_x-Union1Kind optional=False
271    tag type
272    case __org.qemu_x-branch: q_obj_str-wrapper
273array __org.qemu_x-Union1List __org.qemu_x-Union1
274object __org.qemu_x-Struct2
275    member array: __org.qemu_x-Union1List optional=False
276object __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
280alternate __org.qemu_x-Alt
281    tag type
282    case __org.qemu_x-branch: str
283    case b: __org.qemu_x-Base
284event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
285   boxed=False
286array __org.qemu_x-EnumList __org.qemu_x-Enum
287array __org.qemu_x-StructList __org.qemu_x-Struct
288object 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
293command __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
295object TestIfStruct
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)']
300enum TestIfEnum
301    member foo
302    member bar
303        if ['defined(TEST_IF_ENUM_BAR)']
304    if ['defined(TEST_IF_ENUM)']
305object q_obj_TestStruct-wrapper
306    member data: TestStruct optional=False
307enum TestIfUnionKind
308    member foo
309    member union_bar
310        if ['defined(TEST_IF_UNION_BAR)']
311    if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
312object TestIfUnion
313    member type: TestIfUnionKind optional=False
314    tag type
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)']
319object q_obj_TestIfUnionCmd-arg
320    member union_cmd_arg: TestIfUnion optional=False
321    if ['defined(TEST_IF_UNION)']
322command TestIfUnionCmd q_obj_TestIfUnionCmd-arg -> None
323   gen=True success_response=True boxed=False oob=False preconfig=False
324    if ['defined(TEST_IF_UNION)']
325alternate TestIfAlternate
326    tag type
327    case foo: int
328    case bar: TestStruct
329        if ['defined(TEST_IF_ALT_BAR)']
330    if ['defined(TEST_IF_ALT) && defined(TEST_IF_STRUCT)']
331object q_obj_TestIfAlternateCmd-arg
332    member alt_cmd_arg: TestIfAlternate optional=False
333    if ['defined(TEST_IF_ALT)']
334command TestIfAlternateCmd q_obj_TestIfAlternateCmd-arg -> None
335   gen=True success_response=True boxed=False oob=False preconfig=False
336    if ['defined(TEST_IF_ALT)']
337object 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)']
342command 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)']
345command TestCmdReturnDefThree None -> UserDefThree
346   gen=True success_response=True boxed=False oob=False preconfig=False
347array TestIfEnumList TestIfEnum
348    if ['defined(TEST_IF_ENUM)']
349object 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)']
354event TestIfEvent q_obj_TestIfEvent-arg
355   boxed=False
356    if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
357object FeatureStruct0
358    member foo: int optional=False
359object FeatureStruct1
360    member foo: int optional=False
361    feature feature1
362object FeatureStruct2
363    member foo: int optional=False
364    feature feature1
365object FeatureStruct3
366    member foo: int optional=False
367    feature feature1
368    feature feature2
369object FeatureStruct4
370    member namespace-test: int optional=False
371    feature namespace-test
372    feature int
373    feature name
374    feature if
375object CondFeatureStruct1
376    member foo: int optional=False
377    feature feature1
378        if ['defined(TEST_IF_FEATURE_1)']
379object CondFeatureStruct2
380    member foo: int optional=False
381    feature feature1
382        if ['defined(TEST_IF_FEATURE_1)']
383    feature feature2
384        if ['defined(TEST_IF_FEATURE_2)']
385object CondFeatureStruct3
386    member foo: int optional=False
387    feature feature1
388        if ['defined(TEST_IF_COND_1)', 'defined(TEST_IF_COND_2)']
389object 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
398command test-features q_obj_test-features-arg -> None
399   gen=True success_response=True boxed=False oob=False preconfig=False
400