@@ -227,7 +227,8 @@
'data': { '*in': 'str',
'out': 'str',
'*append': 'bool' },
- 'base': 'ChardevCommon' }
+ 'base': 'ChardevCommon',
+ 'aliases': [ {'alias': 'path', 'source': ['out'] } ] }
##
# @ChardevHostdev:
@@ -241,7 +242,8 @@
##
{ 'struct': 'ChardevHostdev',
'data': { 'device': 'str' },
- 'base': 'ChardevCommon' }
+ 'base': 'ChardevCommon',
+ 'aliases': [ {'alias': 'path', 'source': ['device'] } ] }
##
# @ChardevSocket:
@@ -342,7 +344,8 @@
{ 'struct': 'ChardevSpiceChannel',
'data': { 'type': 'str' },
'base': 'ChardevCommon',
- 'if': 'defined(CONFIG_SPICE)' }
+ 'if': 'defined(CONFIG_SPICE)',
+ 'aliases': [ {'alias': 'name', 'source': ['type'] } ] }
##
# @ChardevSpicePort:
@@ -356,7 +359,8 @@
{ 'struct': 'ChardevSpicePort',
'data': { 'fqdn': 'str' },
'base': 'ChardevCommon',
- 'if': 'defined(CONFIG_SPICE)' }
+ 'if': 'defined(CONFIG_SPICE)',
+ 'aliases': [ {'alias': 'name', 'source': ['fqdn'] } ] }
##
# @ChardevVC:
@@ -420,7 +424,8 @@
'vc': 'ChardevVC',
'ringbuf': 'ChardevRingbuf',
# next one is just for compatibility
- 'memory': 'ChardevRingbuf' } }
+ 'memory': 'ChardevRingbuf' },
+ 'aliases': [ { 'source': ['data'] } ] }
##
# @ChardevReturn:
For all chardev backend types where this is enough to achieve compatibility with the old QemuOpts based command line parser, add aliases to the QAPI schema. Signed-off-by: Kevin Wolf <kwolf@redhat.com> --- qapi/char.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)