qapi: add more conditions to SPICE
Now that member can be made conditional, let's make SPICE chardev conditional: * spiceport, spicevmc Before and after the patch for !CONFIG_SPICE, the error is the same ('spiceport' is not a valid char driver name). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20181213123724.4866-22-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
01ae9cc254
commit
fd9dda3b70
@ -332,8 +332,8 @@
|
|||||||
##
|
##
|
||||||
{ 'struct': 'ChardevSpiceChannel',
|
{ 'struct': 'ChardevSpiceChannel',
|
||||||
'data': { 'type': 'str' },
|
'data': { 'type': 'str' },
|
||||||
'base': 'ChardevCommon' }
|
'base': 'ChardevCommon',
|
||||||
# TODO: 'if': 'defined(CONFIG_SPICE)'
|
'if': 'defined(CONFIG_SPICE)' }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @ChardevSpicePort:
|
# @ChardevSpicePort:
|
||||||
@ -346,8 +346,8 @@
|
|||||||
##
|
##
|
||||||
{ 'struct': 'ChardevSpicePort',
|
{ 'struct': 'ChardevSpicePort',
|
||||||
'data': { 'fqdn': 'str' },
|
'data': { 'fqdn': 'str' },
|
||||||
'base': 'ChardevCommon' }
|
'base': 'ChardevCommon',
|
||||||
# TODO: 'if': 'defined(CONFIG_SPICE)'
|
'if': 'defined(CONFIG_SPICE)' }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @ChardevVC:
|
# @ChardevVC:
|
||||||
@ -404,10 +404,10 @@
|
|||||||
'testdev': 'ChardevCommon',
|
'testdev': 'ChardevCommon',
|
||||||
'stdio': 'ChardevStdio',
|
'stdio': 'ChardevStdio',
|
||||||
'console': 'ChardevCommon',
|
'console': 'ChardevCommon',
|
||||||
'spicevmc': 'ChardevSpiceChannel',
|
'spicevmc': { 'type': 'ChardevSpiceChannel',
|
||||||
# TODO: { 'type': 'ChardevSpiceChannel', 'if': 'defined(CONFIG_SPICE)' },
|
'if': 'defined(CONFIG_SPICE)' },
|
||||||
'spiceport': 'ChardevSpicePort',
|
'spiceport': { 'type': 'ChardevSpicePort',
|
||||||
# TODO: { 'type': 'ChardevSpicePort', 'if': 'defined(CONFIG_SPICE)' },
|
'if': 'defined(CONFIG_SPICE)' },
|
||||||
'vc': 'ChardevVC',
|
'vc': 'ChardevVC',
|
||||||
'ringbuf': 'ChardevRingbuf',
|
'ringbuf': 'ChardevRingbuf',
|
||||||
# next one is just for compatibility
|
# next one is just for compatibility
|
||||||
|
Loading…
Reference in New Issue
Block a user