|
@@ -2,31 +2,15 @@
|
|
# TODO: It would be possible to allow a union as a base, as long as all
|
|
# TODO: It would be possible to allow a union as a base, as long as all
|
|
# permutations of QMP names exposed by base do not clash with any QMP
|
|
# permutations of QMP names exposed by base do not clash with any QMP
|
|
# member names added by local variants.
|
|
# member names added by local variants.
|
|
-
|
|
|
|
-##
|
|
|
|
-# @TestEnum:
|
|
|
|
-##
|
|
|
|
{ 'enum': 'TestEnum',
|
|
{ 'enum': 'TestEnum',
|
|
'data': [ 'value1', 'value2' ] }
|
|
'data': [ 'value1', 'value2' ] }
|
|
-##
|
|
|
|
-# @TestTypeA:
|
|
|
|
-##
|
|
|
|
{ 'struct': 'TestTypeA',
|
|
{ 'struct': 'TestTypeA',
|
|
'data': { 'string': 'str' } }
|
|
'data': { 'string': 'str' } }
|
|
-##
|
|
|
|
-# @TestTypeB:
|
|
|
|
-##
|
|
|
|
{ 'struct': 'TestTypeB',
|
|
{ 'struct': 'TestTypeB',
|
|
'data': { 'integer': 'int' } }
|
|
'data': { 'integer': 'int' } }
|
|
-##
|
|
|
|
-# @UnionBase:
|
|
|
|
-##
|
|
|
|
{ 'union': 'UnionBase',
|
|
{ 'union': 'UnionBase',
|
|
'data': { 'kind1': 'TestTypeA',
|
|
'data': { 'kind1': 'TestTypeA',
|
|
'kind2': 'TestTypeB' } }
|
|
'kind2': 'TestTypeB' } }
|
|
-##
|
|
|
|
-# @TestUnion:
|
|
|
|
-##
|
|
|
|
{ 'union': 'TestUnion',
|
|
{ 'union': 'TestUnion',
|
|
'base': 'UnionBase',
|
|
'base': 'UnionBase',
|
|
'discriminator': 'type',
|
|
'discriminator': 'type',
|