summaryrefslogtreecommitdiffstats
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorWenchao Xia2014-03-05 03:44:38 +0100
committerLuiz Capitulino2014-03-11 14:07:42 +0100
commit59ca664ef86c8a9078157336b566e832fc5466e2 (patch)
treea26aabf43464781b07e0d026df832d419ac6109a /qapi-schema.json
parentqapi script: support enum type as discriminator in union (diff)
downloadqemu-59ca664ef86c8a9078157336b566e832fc5466e2.tar.gz
qemu-59ca664ef86c8a9078157336b566e832fc5466e2.tar.xz
qemu-59ca664ef86c8a9078157336b566e832fc5466e2.zip
qapi: convert BlockdevOptions to use enum discriminator
After this patch, hidden enum type BlockdevOptionsKind will not be generated, and other API can use enum BlockdevDriver. Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json14
1 files changed, 13 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index 6c381b7306..f4f9439fe6 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -4249,6 +4249,18 @@
'*no-flush': 'bool' } }
##
+# @BlockdevDriver
+#
+# Drivers that are supported in block device operations.
+#
+# Since: 2.0
+##
+{ 'enum': 'BlockdevDriver',
+ 'data': [ 'file', 'http', 'https', 'ftp', 'ftps', 'tftp', 'vvfat', 'blkdebug',
+ 'blkverify', 'bochs', 'cloop', 'cow', 'dmg', 'parallels', 'qcow',
+ 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quorum' ] }
+
+##
# @BlockdevOptionsBase
#
# Options that are available for all block devices, independent of the block
@@ -4272,7 +4284,7 @@
# Since: 1.7
##
{ 'type': 'BlockdevOptionsBase',
- 'data': { 'driver': 'str',
+ 'data': { 'driver': 'BlockdevDriver',
'*id': 'str',
'*node-name': 'str',
'*discard': 'BlockdevDiscardOptions',