Previous patches have led up to the point where I create the new meta-type "'alternate':'Foo'". See the previous patches for documentation; I intentionally split as much work into earlier patches to minimize the size of this patch, but a lot of it is churn due to testsuite fallout after updating to the new type. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
10 lines
262 B
JSON
10 lines
262 B
JSON
# Working example of alternate
|
|
{ 'type': 'Data',
|
|
'data': { '*number': 'int', '*name': 'str' } }
|
|
{ 'enum': 'Enum',
|
|
'data': [ 'hello', 'world' ] }
|
|
{ 'alternate': 'Alt',
|
|
'data': { 'value': 'int',
|
|
'string': 'Enum',
|
|
'struct': 'Data' } }
|