mirror of https://github.com/xqemu/xqemu.git
23 lines
355 B
JSON
23 lines
355 B
JSON
# a union base type must be a struct
|
|
|
|
##
|
|
# @TestTypeA:
|
|
##
|
|
{ 'struct': 'TestTypeA',
|
|
'data': { 'string': 'str' } }
|
|
|
|
##
|
|
# @TestTypeB:
|
|
##
|
|
{ 'struct': 'TestTypeB',
|
|
'data': { 'integer': 'int' } }
|
|
|
|
##
|
|
# @TestUnion:
|
|
##
|
|
{ 'union': 'TestUnion',
|
|
'base': 'int',
|
|
'discriminator': 'int',
|
|
'data': { 'value1': 'TestTypeA',
|
|
'value2': 'TestTypeB' } }
|