Kevin Wolf
0aef92b90d
qapi-visit.py: Implement 'base' for unions
This implements the visitor part of base types for unions. Parsed into
QMP, this example schema definition...
{ 'type': 'BlockOptionsBase', 'data': { 'read-only': 'bool' } }
{ 'type': 'BlockOptionsQcow2, 'data': { 'lazy-refcounts': 'bool' } }
{ 'union': 'BlockOptions',
'base': 'BlockOptionsBase',
'data': {
'raw': 'BlockOptionsRaw'
'qcow2': 'BlockOptionsQcow2'
} }
...would describe the following JSON object:
{ "type": "qcow2",
"read-only": true,
"data": { "lazy-refcounts": false } }
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2013-07-26 20:17:15 +02:00
..
2013-04-17 23:27:24 -03:00
2013-01-08 16:38:12 -06:00
2013-05-03 13:58:09 +02:00
2011-12-21 12:37:23 +05:30
2012-01-18 10:23:39 -02:00
2012-09-05 19:17:49 +00:00
2013-07-18 11:44:42 +08:00
2013-06-14 15:33:11 +01:00
2012-12-19 08:31:31 +01:00
2012-12-12 23:41:03 +02:00
2012-03-30 08:14:11 -05:00
2011-12-19 10:27:33 -06:00
2013-03-09 12:00:03 +00:00
2012-07-17 15:43:16 -05:00
2011-07-21 16:48:14 -03:00
2013-07-16 09:15:06 -04:00
2013-07-26 20:17:15 +02:00
2013-07-26 20:17:15 +02:00
2013-07-10 13:39:37 -04:00
2012-05-08 11:15:18 -05:00
2012-03-24 12:57:02 +00:00
2012-03-30 08:14:11 -05:00
2011-04-18 11:46:41 -06:00
2012-04-16 15:41:20 +02:00
2012-08-15 15:18:54 +01:00
2012-03-24 14:10:25 +00:00
2013-06-14 15:33:10 +01:00
2013-01-07 17:37:09 +01:00