]>
Commit | Line | Data |
---|---|---|
8a84767c MA |
1 | object q_empty |
2 | enum QType ['none', 'qnull', 'qnum', 'qstring', 'qdict', 'qlist', 'qbool'] | |
3 | prefix QTYPE | |
cf40a0a5 | 4 | module qapi-schema-test.json |
8a84767c MA |
5 | object TestStruct |
6 | member integer: int optional=False | |
7 | member boolean: bool optional=False | |
156402e5 | 8 | member string: str optional=False |
156402e5 MA |
9 | object NestedEnumsOne |
10 | member enum1: EnumOne optional=False | |
11 | member enum2: EnumOne optional=True | |
12 | member enum3: EnumOne optional=False | |
13 | member enum4: EnumOne optional=True | |
8a84767c MA |
14 | enum MyEnum [] |
15 | object Empty1 | |
16 | object Empty2 | |
17 | base Empty1 | |
18 | command user_def_cmd0 Empty2 -> Empty2 | |
7b13f2c2 | 19 | gen=True success_response=True boxed=False oob=False preconfig=False |
156402e5 MA |
20 | enum QEnumTwo ['value1', 'value2'] |
21 | prefix QENUM_TWO | |
8a84767c MA |
22 | object UserDefOne |
23 | base UserDefZero | |
24 | member string: str optional=False | |
25 | member enum1: EnumOne optional=True | |
800877bb | 26 | enum EnumOne ['value1', 'value2', 'value3', 'value4'] |
8a84767c | 27 | object UserDefZero |
748053c9 | 28 | member integer: int optional=False |
8a84767c MA |
29 | object UserDefTwoDictDict |
30 | member userdef: UserDefOne optional=False | |
748053c9 | 31 | member string: str optional=False |
8a84767c MA |
32 | object UserDefTwoDict |
33 | member string1: str optional=False | |
34 | member dict2: UserDefTwoDictDict optional=False | |
35 | member dict3: UserDefTwoDictDict optional=True | |
36 | object UserDefTwo | |
37 | member string0: str optional=False | |
38 | member dict1: UserDefTwoDict optional=False | |
967c8851 MAL |
39 | object UserDefThree |
40 | member string0: str optional=False | |
8a84767c MA |
41 | object ForceArrays |
42 | member unused1: UserDefOneList optional=False | |
43 | member unused2: UserDefTwoList optional=False | |
44 | member unused3: TestStructList optional=False | |
156402e5 MA |
45 | object UserDefA |
46 | member boolean: bool optional=False | |
d220fbcd | 47 | member a_b: int optional=True |
156402e5 MA |
48 | object UserDefB |
49 | member intb: int optional=False | |
d220fbcd | 50 | member a-b: bool optional=True |
156402e5 MA |
51 | object UserDefFlatUnion |
52 | base UserDefUnionBase | |
53 | tag enum1 | |
54 | case value1: UserDefA | |
55 | case value2: UserDefB | |
56 | case value3: UserDefB | |
800877bb | 57 | case value4: q_empty |
8a84767c MA |
58 | object UserDefUnionBase |
59 | base UserDefZero | |
60 | member string: str optional=False | |
61 | member enum1: EnumOne optional=False | |
62 | object q_obj_UserDefFlatUnion2-base | |
63 | member integer: int optional=True | |
64 | member string: str optional=False | |
65 | member enum1: QEnumTwo optional=False | |
156402e5 | 66 | object UserDefFlatUnion2 |
ac4338f8 | 67 | base q_obj_UserDefFlatUnion2-base |
156402e5 MA |
68 | tag enum1 |
69 | case value1: UserDefC | |
70 | case value2: UserDefB | |
8a84767c MA |
71 | object WrapAlternate |
72 | member alt: UserDefAlternate optional=False | |
73 | alternate UserDefAlternate | |
74 | tag type | |
75 | case udfu: UserDefFlatUnion | |
76 | case e: EnumOne | |
77 | case i: int | |
78 | case n: null | |
79 | object UserDefC | |
80 | member string1: str optional=False | |
81 | member string2: str optional=False | |
82 | alternate AltEnumBool | |
83 | tag type | |
84 | case e: EnumOne | |
85 | case b: bool | |
86 | alternate AltEnumNum | |
87 | tag type | |
88 | case e: EnumOne | |
89 | case n: number | |
90 | alternate AltNumEnum | |
91 | tag type | |
92 | case n: number | |
93 | case e: EnumOne | |
94 | alternate AltEnumInt | |
95 | tag type | |
96 | case e: EnumOne | |
97 | case i: int | |
98 | alternate AltStrObj | |
99 | tag type | |
100 | case s: str | |
101 | case o: TestStruct | |
102 | object q_obj_intList-wrapper | |
103 | member data: intList optional=False | |
104 | object q_obj_int8List-wrapper | |
105 | member data: int8List optional=False | |
106 | object q_obj_int16List-wrapper | |
107 | member data: int16List optional=False | |
108 | object q_obj_int32List-wrapper | |
109 | member data: int32List optional=False | |
110 | object q_obj_int64List-wrapper | |
111 | member data: int64List optional=False | |
112 | object q_obj_uint8List-wrapper | |
113 | member data: uint8List optional=False | |
114 | object q_obj_uint16List-wrapper | |
115 | member data: uint16List optional=False | |
116 | object q_obj_uint32List-wrapper | |
117 | member data: uint32List optional=False | |
118 | object q_obj_uint64List-wrapper | |
119 | member data: uint64List optional=False | |
120 | object q_obj_numberList-wrapper | |
121 | member data: numberList optional=False | |
122 | object q_obj_boolList-wrapper | |
123 | member data: boolList optional=False | |
124 | object q_obj_strList-wrapper | |
125 | member data: strList optional=False | |
126 | object q_obj_sizeList-wrapper | |
127 | member data: sizeList optional=False | |
128 | object q_obj_anyList-wrapper | |
129 | member data: anyList optional=False | |
130 | enum UserDefNativeListUnionKind ['integer', 's8', 's16', 's32', 's64', 'u8', 'u16', 'u32', 'u64', 'number', 'boolean', 'string', 'sizes', 'any'] | |
156402e5 | 131 | object UserDefNativeListUnion |
da34a9bd | 132 | member type: UserDefNativeListUnionKind optional=False |
da9cb193 | 133 | tag type |
7599697c EB |
134 | case integer: q_obj_intList-wrapper |
135 | case s8: q_obj_int8List-wrapper | |
136 | case s16: q_obj_int16List-wrapper | |
137 | case s32: q_obj_int32List-wrapper | |
138 | case s64: q_obj_int64List-wrapper | |
139 | case u8: q_obj_uint8List-wrapper | |
140 | case u16: q_obj_uint16List-wrapper | |
141 | case u32: q_obj_uint32List-wrapper | |
142 | case u64: q_obj_uint64List-wrapper | |
143 | case number: q_obj_numberList-wrapper | |
144 | case boolean: q_obj_boolList-wrapper | |
145 | case string: q_obj_strList-wrapper | |
146 | case sizes: q_obj_sizeList-wrapper | |
147 | case any: q_obj_anyList-wrapper | |
8a84767c | 148 | command user_def_cmd None -> None |
7b13f2c2 | 149 | gen=True success_response=True boxed=False oob=False preconfig=False |
8a84767c MA |
150 | object q_obj_user_def_cmd1-arg |
151 | member ud1a: UserDefOne optional=False | |
152 | command user_def_cmd1 q_obj_user_def_cmd1-arg -> None | |
7b13f2c2 | 153 | gen=True success_response=True boxed=False oob=False preconfig=False |
8a84767c MA |
154 | object q_obj_user_def_cmd2-arg |
155 | member ud1a: UserDefOne optional=False | |
156 | member ud1b: UserDefOne optional=True | |
157 | command user_def_cmd2 q_obj_user_def_cmd2-arg -> UserDefTwo | |
7b13f2c2 | 158 | gen=True success_response=True boxed=False oob=False preconfig=False |
8a84767c MA |
159 | object q_obj_guest-get-time-arg |
160 | member a: int optional=False | |
161 | member b: int optional=True | |
162 | command guest-get-time q_obj_guest-get-time-arg -> int | |
7b13f2c2 | 163 | gen=True success_response=True boxed=False oob=False preconfig=False |
8a84767c MA |
164 | object q_obj_guest-sync-arg |
165 | member arg: any optional=False | |
166 | command guest-sync q_obj_guest-sync-arg -> any | |
7b13f2c2 | 167 | gen=True success_response=True boxed=False oob=False preconfig=False |
8a84767c | 168 | command boxed-struct UserDefZero -> None |
7b13f2c2 | 169 | gen=True success_response=True boxed=True oob=False preconfig=False |
8a84767c | 170 | command boxed-union UserDefNativeListUnion -> None |
7b13f2c2 IM |
171 | gen=True success_response=True boxed=True oob=False preconfig=False |
172 | command test-flags-command None -> None | |
173 | gen=True success_response=True boxed=False oob=True preconfig=True | |
156402e5 MA |
174 | object UserDefOptions |
175 | member i64: intList optional=True | |
176 | member u64: uint64List optional=True | |
177 | member u16: uint16List optional=True | |
178 | member i64x: int optional=True | |
179 | member u64x: uint64 optional=True | |
8a84767c MA |
180 | object EventStructOne |
181 | member struct1: UserDefOne optional=False | |
156402e5 | 182 | member string: str optional=False |
8a84767c MA |
183 | member enum2: EnumOne optional=True |
184 | event EVENT_A None | |
48825ca4 | 185 | boxed=False |
8a84767c MA |
186 | event EVENT_B None |
187 | boxed=False | |
188 | object q_obj_EVENT_C-arg | |
189 | member a: int optional=True | |
190 | member b: UserDefOne optional=True | |
191 | member c: str optional=False | |
192 | event EVENT_C q_obj_EVENT_C-arg | |
193 | boxed=False | |
194 | object q_obj_EVENT_D-arg | |
195 | member a: EventStructOne optional=False | |
196 | member b: str optional=False | |
197 | member c: str optional=True | |
198 | member enum3: EnumOne optional=True | |
199 | event EVENT_D q_obj_EVENT_D-arg | |
200 | boxed=False | |
201 | event EVENT_E UserDefZero | |
202 | boxed=True | |
203 | event EVENT_F UserDefAlternate | |
204 | boxed=True | |
205 | enum __org.qemu_x-Enum ['__org.qemu_x-value'] | |
156402e5 MA |
206 | object __org.qemu_x-Base |
207 | member __org.qemu_x-member1: __org.qemu_x-Enum optional=False | |
156402e5 MA |
208 | object __org.qemu_x-Struct |
209 | base __org.qemu_x-Base | |
210 | member __org.qemu_x-member2: str optional=False | |
c43567c1 | 211 | member wchar-t: int optional=True |
8a84767c MA |
212 | object q_obj_str-wrapper |
213 | member data: str optional=False | |
214 | enum __org.qemu_x-Union1Kind ['__org.qemu_x-branch'] | |
156402e5 | 215 | object __org.qemu_x-Union1 |
da34a9bd | 216 | member type: __org.qemu_x-Union1Kind optional=False |
da9cb193 | 217 | tag type |
7599697c | 218 | case __org.qemu_x-branch: q_obj_str-wrapper |
8a84767c MA |
219 | object __org.qemu_x-Struct2 |
220 | member array: __org.qemu_x-Union1List optional=False | |
156402e5 MA |
221 | object __org.qemu_x-Union2 |
222 | base __org.qemu_x-Base | |
223 | tag __org.qemu_x-member1 | |
224 | case __org.qemu_x-value: __org.qemu_x-Struct2 | |
8a84767c MA |
225 | alternate __org.qemu_x-Alt |
226 | tag type | |
227 | case __org.qemu_x-branch: str | |
228 | case b: __org.qemu_x-Base | |
229 | event __ORG.QEMU_X-EVENT __org.qemu_x-Struct | |
230 | boxed=False | |
7599697c EB |
231 | object q_obj___org.qemu_x-command-arg |
232 | member a: __org.qemu_x-EnumList optional=False | |
233 | member b: __org.qemu_x-StructList optional=False | |
234 | member c: __org.qemu_x-Union2 optional=False | |
235 | member d: __org.qemu_x-Alt optional=False | |
8a84767c | 236 | command __org.qemu_x-command q_obj___org.qemu_x-command-arg -> __org.qemu_x-Union1 |
7b13f2c2 | 237 | gen=True success_response=True boxed=False oob=False preconfig=False |
967c8851 MAL |
238 | object TestIfStruct |
239 | member foo: int optional=False | |
fbf09a2f | 240 | if ['defined(TEST_IF_STRUCT)'] |
967c8851 | 241 | enum TestIfEnum ['foo', 'bar'] |
fbf09a2f | 242 | if ['defined(TEST_IF_ENUM)'] |
967c8851 MAL |
243 | object q_obj_TestStruct-wrapper |
244 | member data: TestStruct optional=False | |
245 | enum TestIfUnionKind ['foo'] | |
fbf09a2f | 246 | if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)'] |
967c8851 MAL |
247 | object TestIfUnion |
248 | member type: TestIfUnionKind optional=False | |
249 | tag type | |
250 | case foo: q_obj_TestStruct-wrapper | |
fbf09a2f | 251 | if ['defined(TEST_IF_UNION) && defined(TEST_IF_STRUCT)'] |
967c8851 MAL |
252 | alternate TestIfAlternate |
253 | tag type | |
254 | case foo: int | |
255 | case bar: TestStruct | |
fbf09a2f | 256 | if ['defined(TEST_IF_ALT) && defined(TEST_IF_STRUCT)'] |
967c8851 MAL |
257 | object q_obj_TestIfCmd-arg |
258 | member foo: TestIfStruct optional=False | |
fbf09a2f | 259 | if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)'] |
967c8851 MAL |
260 | command TestIfCmd q_obj_TestIfCmd-arg -> UserDefThree |
261 | gen=True success_response=True boxed=False oob=False preconfig=False | |
fbf09a2f | 262 | if ['defined(TEST_IF_CMD)', 'defined(TEST_IF_STRUCT)'] |
967c8851 MAL |
263 | command TestCmdReturnDefThree None -> UserDefThree |
264 | gen=True success_response=True boxed=False oob=False preconfig=False | |
265 | object q_obj_TestIfEvent-arg | |
266 | member foo: TestIfStruct optional=False | |
fbf09a2f | 267 | if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)'] |
967c8851 MAL |
268 | event TestIfEvent q_obj_TestIfEvent-arg |
269 | boxed=False | |
fbf09a2f | 270 | if ['defined(TEST_IF_EVT) && defined(TEST_IF_STRUCT)'] |