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
55object ForceArrays
56    member unused1: UserDefOneList optional=False
57    member unused2: UserDefTwoList optional=False
58    member unused3: TestStructList optional=False
59object UserDefA
60    member boolean: bool optional=False
61    member a_b: int optional=True
62object UserDefB
63    member intb: int optional=False
64    member a-b: bool optional=True
65object UserDefFlatUnion
66    base UserDefUnionBase
67    tag enum1
68    case value1: UserDefA
69    case value2: UserDefB
70    case value3: UserDefB
71    case value4: q_empty
72object UserDefUnionBase
73    base UserDefZero
74    member string: str optional=False
75    member enum1: EnumOne optional=False
76object q_obj_UserDefFlatUnion2-base
77    member integer: int optional=True
78    member string: str optional=False
79    member enum1: QEnumTwo optional=False
80object UserDefFlatUnion2
81    base q_obj_UserDefFlatUnion2-base
82    tag enum1
83    case value1: UserDefC
84    case value2: UserDefB
85object WrapAlternate
86    member alt: UserDefAlternate optional=False
87alternate UserDefAlternate
88    tag type
89    case udfu: UserDefFlatUnion
90    case e: EnumOne
91    case i: int
92    case n: null
93object UserDefC
94    member string1: str optional=False
95    member string2: str optional=False
96alternate AltEnumBool
97    tag type
98    case e: EnumOne
99    case b: bool
100alternate AltEnumNum
101    tag type
102    case e: EnumOne
103    case n: number
104alternate AltNumEnum
105    tag type
106    case n: number
107    case e: EnumOne
108alternate AltEnumInt
109    tag type
110    case e: EnumOne
111    case i: int
112alternate AltStrObj
113    tag type
114    case s: str
115    case o: TestStruct
116object q_obj_intList-wrapper
117    member data: intList optional=False
118object q_obj_int8List-wrapper
119    member data: int8List optional=False
120object q_obj_int16List-wrapper
121    member data: int16List optional=False
122object q_obj_int32List-wrapper
123    member data: int32List optional=False
124object q_obj_int64List-wrapper
125    member data: int64List optional=False
126object q_obj_uint8List-wrapper
127    member data: uint8List optional=False
128object q_obj_uint16List-wrapper
129    member data: uint16List optional=False
130object q_obj_uint32List-wrapper
131    member data: uint32List optional=False
132object q_obj_uint64List-wrapper
133    member data: uint64List optional=False
134object q_obj_numberList-wrapper
135    member data: numberList optional=False
136object q_obj_boolList-wrapper
137    member data: boolList optional=False
138object q_obj_strList-wrapper
139    member data: strList optional=False
140object q_obj_sizeList-wrapper
141    member data: sizeList optional=False
142object q_obj_anyList-wrapper
143    member data: anyList optional=False
144enum UserDefNativeListUnionKind
145    member integer
146    member s8
147    member s16
148    member s32
149    member s64
150    member u8
151    member u16
152    member u32
153    member u64
154    member number
155    member boolean
156    member string
157    member sizes
158    member any
159object UserDefNativeListUnion
160    member type: UserDefNativeListUnionKind optional=False
161    tag type
162    case integer: q_obj_intList-wrapper
163    case s8: q_obj_int8List-wrapper
164    case s16: q_obj_int16List-wrapper
165    case s32: q_obj_int32List-wrapper
166    case s64: q_obj_int64List-wrapper
167    case u8: q_obj_uint8List-wrapper
168    case u16: q_obj_uint16List-wrapper
169    case u32: q_obj_uint32List-wrapper
170    case u64: q_obj_uint64List-wrapper
171    case number: q_obj_numberList-wrapper
172    case boolean: q_obj_boolList-wrapper
173    case string: q_obj_strList-wrapper
174    case sizes: q_obj_sizeList-wrapper
175    case any: q_obj_anyList-wrapper
176command user_def_cmd None -> None
177   gen=True success_response=True boxed=False oob=False preconfig=False
178object q_obj_user_def_cmd1-arg
179    member ud1a: UserDefOne optional=False
180command user_def_cmd1 q_obj_user_def_cmd1-arg -> None
181   gen=True success_response=True boxed=False oob=False preconfig=False
182object q_obj_user_def_cmd2-arg
183    member ud1a: UserDefOne optional=False
184    member ud1b: UserDefOne optional=True
185command user_def_cmd2 q_obj_user_def_cmd2-arg -> UserDefTwo
186   gen=True success_response=True boxed=False oob=False preconfig=False
187command cmd-success-response None -> None
188   gen=True success_response=False boxed=False oob=False preconfig=False
189object q_obj_guest-get-time-arg
190    member a: int optional=False
191    member b: int optional=True
192command guest-get-time q_obj_guest-get-time-arg -> int
193   gen=True success_response=True boxed=False oob=False preconfig=False
194object q_obj_guest-sync-arg
195    member arg: any optional=False
196command guest-sync q_obj_guest-sync-arg -> any
197   gen=True success_response=True boxed=False oob=False preconfig=False
198command boxed-struct UserDefZero -> None
199   gen=True success_response=True boxed=True oob=False preconfig=False
200command boxed-union UserDefNativeListUnion -> None
201   gen=True success_response=True boxed=True oob=False preconfig=False
202command test-flags-command None -> None
203   gen=True success_response=True boxed=False oob=True preconfig=True
204object UserDefOptions
205    member i64: intList optional=True
206    member u64: uint64List optional=True
207    member u16: uint16List optional=True
208    member i64x: int optional=True
209    member u64x: uint64 optional=True
210object EventStructOne
211    member struct1: UserDefOne optional=False
212    member string: str optional=False
213    member enum2: EnumOne optional=True
214event EVENT_A None
215   boxed=False
216event EVENT_B None
217   boxed=False
218object q_obj_EVENT_C-arg
219    member a: int optional=True
220    member b: UserDefOne optional=True
221    member c: str optional=False
222event EVENT_C q_obj_EVENT_C-arg
223   boxed=False
224object q_obj_EVENT_D-arg
225    member a: EventStructOne optional=False
226    member b: str optional=False
227    member c: str optional=True
228    member enum3: EnumOne optional=True
229event EVENT_D q_obj_EVENT_D-arg
230   boxed=False
231event EVENT_E UserDefZero
232   boxed=True
233event EVENT_F UserDefAlternate
234   boxed=True
235enum __org.qemu_x-Enum
236    member __org.qemu_x-value
237object __org.qemu_x-Base
238    member __org.qemu_x-member1: __org.qemu_x-Enum optional=False
239object __org.qemu_x-Struct
240    base __org.qemu_x-Base
241    member __org.qemu_x-member2: str optional=False
242    member wchar-t: int optional=True
243object q_obj_str-wrapper
244    member data: str optional=False
245enum __org.qemu_x-Union1Kind
246    member __org.qemu_x-branch
247object __org.qemu_x-Union1
248    member type: __org.qemu_x-Union1Kind optional=False
249    tag type
250    case __org.qemu_x-branch: q_obj_str-wrapper
251object __org.qemu_x-Struct2
252    member array: __org.qemu_x-Union1List optional=False
253object __org.qemu_x-Union2
254    base __org.qemu_x-Base
255    tag __org.qemu_x-member1
256    case __org.qemu_x-value: __org.qemu_x-Struct2
257alternate __org.qemu_x-Alt
258    tag type
259    case __org.qemu_x-branch: str
260    case b: __org.qemu_x-Base
261event __ORG.QEMU_X-EVENT __org.qemu_x-Struct
262   boxed=False
263object q_obj___org.qemu_x-command-arg
264    member a: __org.qemu_x-EnumList optional=False
265    member b: __org.qemu_x-StructList optional=False
266    member c: __org.qemu_x-Union2 optional=False
267    member d: __org.qemu_x-Alt optional=False
268command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> __org.qemu_x-Union1
269   gen=True success_response=True boxed=False oob=False preconfig=False
270object TestIfStruct
271    member foo: int optional=False
272    member bar: int optional=False
273        if ['defined(TEST_IF_STRUCT_BAR)']
274    if ['defined(TEST_IF_STRUCT)']
275enum TestIfEnum
276    member foo
277    member bar
278        if ['defined(TEST_IF_ENUM_BAR)']
279    if ['defined(TEST_IF_ENUM)']
280object q_obj_TestStruct-wrapper
281    member data: TestStruct optional=False
282enum TestIfUnionKind
283    member foo
284    member union_bar
285        if ['defined(TEST_IF_UNION_BAR)']
286    if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
287object TestIfUnion
288    member type: TestIfUnionKind optional=False
289    tag type
290    case foo: q_obj_TestStruct-wrapper
291    case union_bar: q_obj_str-wrapper
292        if ['defined(TEST_IF_UNION_BAR)']
293    if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)']
294object q_obj_TestIfUnionCmd-arg
295    member union_cmd_arg: TestIfUnion optional=False
296    if ['defined(TEST_IF_UNION)']
297command TestIfUnionCmd q_obj_TestIfUnionCmd-arg -> None
298   gen=True success_response=True boxed=False oob=False preconfig=False
299    if ['defined(TEST_IF_UNION)']
300alternate TestIfAlternate
301    tag type
302    case foo: int
303    case bar: TestStruct
304        if ['defined(TEST_IF_ALT_BAR)']
305    if ['defined(TEST_IF_ALT) && defined(TEST_IF_STRUCT)']
306object q_obj_TestIfAlternateCmd-arg
307    member alt_cmd_arg: TestIfAlternate optional=False
308    if ['defined(TEST_IF_ALT)']
309command TestIfAlternateCmd q_obj_TestIfAlternateCmd-arg -> None
310   gen=True success_response=True boxed=False oob=False preconfig=False
311    if ['defined(TEST_IF_ALT)']
312object q_obj_TestIfCmd-arg
313    member foo: TestIfStruct optional=False
314    member bar: TestIfEnum optional=False
315        if ['defined(TEST_IF_CMD_BAR)']
316    if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
317command TestIfCmd q_obj_TestIfCmd-arg -> UserDefThree
318   gen=True success_response=True boxed=False oob=False preconfig=False
319    if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)']
320command TestCmdReturnDefThree None -> UserDefThree
321   gen=True success_response=True boxed=False oob=False preconfig=False
322object q_obj_TestIfEvent-arg
323    member foo: TestIfStruct optional=False
324    member bar: TestIfEnum optional=False
325        if ['defined(TEST_IF_EVT_BAR)']
326    if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
327event TestIfEvent q_obj_TestIfEvent-arg
328   boxed=False
329    if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)']
330