]> Git Repo - qemu.git/commitdiff
qapi: convert BlockdevOptions to use enum discriminator
authorWenchao Xia <[email protected]>
Wed, 5 Mar 2014 02:44:38 +0000 (18:44 -0800)
committerLuiz Capitulino <[email protected]>
Tue, 11 Mar 2014 13:07:42 +0000 (09:07 -0400)
After this patch, hidden enum type BlockdevOptionsKind will not
be generated, and other API can use enum BlockdevDriver.

Signed-off-by: Wenchao Xia <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
qapi-schema.json

index 6c381b7306774367e711a4ffb56711731c06a9f5..f4f9439fe6fcfc4c1db7dad73a9420342f77a4f5 100644 (file)
             '*direct': 'bool',
             '*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
 #
 # Since: 1.7
 ##
 { 'type': 'BlockdevOptionsBase',
-  'data': { 'driver': 'str',
+  'data': { 'driver': 'BlockdevDriver',
             '*id': 'str',
             '*node-name': 'str',
             '*discard': 'BlockdevDiscardOptions',
This page took 0.032327 seconds and 4 git commands to generate.