blockjob: Add "completed" and "ret" in BlockJob
[qemu/armbru.git] / tests / qapi-schema / flat-union-clash-type.json
blob8f710f08aa870056e8e77172df42f4a4650d4318
1 # Flat union branch 'type'
2 # Reject this, because we would have a clash in generated C, between the
3 # outer tag 'type' and the branch name 'type' within the union.
4 # TODO: We could munge the generated C branch name to let it compile.
5 { 'enum': 'TestEnum',
6   'data': [ 'type' ] }
7 { 'struct': 'Base',
8   'data': { 'type': 'TestEnum' } }
9 { 'struct': 'Branch1',
10   'data': { 'string': 'str' } }
11 { 'union': 'TestUnion',
12   'base': 'Base',
13   'discriminator': 'type',
14   'data': { 'type': 'Branch1' } }