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