diff options
author | 2013-07-02 16:20:04 +0200 | |
---|---|---|
committer | 2013-07-26 20:17:15 +0200 | |
commit | 0aef92b90d24858eea1ebd52a51bc31563f1fb52 (patch) | |
tree | d41e0d093c6536a269911b9bc498fd453ad64a5a /scripts/qapi-types.py | |
parent | qapi-visit.py: Split off generate_visit_struct_fields() (diff) | |
download | qemu-0aef92b90d24858eea1ebd52a51bc31563f1fb52.tar.xz qemu-0aef92b90d24858eea1ebd52a51bc31563f1fb52.zip |
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>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions