Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / qapi-schema / flat-union-base-union.json
1 # we require the base to be a struct
2 { 'enum': 'TestEnum',
3   'data': [ 'value1', 'value2' ] }
4 { 'struct': 'TestTypeA',
5   'data': { 'string': 'str' } }
6 { 'struct': 'TestTypeB',
7   'data': { 'integer': 'int' } }
8 { 'union': 'UnionBase',
9   'data': { 'kind1': 'TestTypeA',
10             'kind2': 'TestTypeB' } }
11 { 'union': 'TestUnion',
12   'base': 'UnionBase',
13   'discriminator': 'type',
14   'data': { 'kind1': 'TestTypeA',
15             'kind2': 'TestTypeB' } }