]> Git Repo - qemu.git/blame - tests/qapi-schema/flat-union-base-union.json
Merge remote-tracking branch 'mst/tags/for_upstream' into staging
[qemu.git] / tests / qapi-schema / flat-union-base-union.json
CommitLineData
d220fbcd
EB
1# For now, we require the base to be a struct without variants
2# TODO: It would be possible to allow a union as a base, as long as all
3# permutations of QMP names exposed by base do not clash with any QMP
4# member names added by local variants.
3d0c4829
EB
5{ 'enum': 'TestEnum',
6 'data': [ 'value1', 'value2' ] }
895a2a80 7{ 'struct': 'TestTypeA',
3d0c4829 8 'data': { 'string': 'str' } }
895a2a80 9{ 'struct': 'TestTypeB',
3d0c4829
EB
10 'data': { 'integer': 'int' } }
11{ 'union': 'UnionBase',
12 'data': { 'kind1': 'TestTypeA',
13 'kind2': 'TestTypeB' } }
14{ 'union': 'TestUnion',
15 'base': 'UnionBase',
16 'discriminator': 'type',
17 'data': { 'kind1': 'TestTypeA',
18 'kind2': 'TestTypeB' } }
This page took 0.092974 seconds and 4 git commands to generate.