]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qapi/block-core.json
qapi/block-core: turn BlockJobInfo into a union
[mirror_qemu.git] / qapi / block-core.json
index 9d03210664e295a32e3d20a05322ca2ea1fa0dbd..dca0e94bb0a53ccbbf2d5f2536774a5a708eecff 100644 (file)
 #
 # Since: 1.1
 ##
-{ 'struct': 'BlockJobInfo',
-  'data': {'type': 'JobType', 'device': 'str', 'len': 'int',
+{ 'union': 'BlockJobInfo',
+  'base': {'type': 'JobType', 'device': 'str', 'len': 'int',
            'offset': 'int', 'busy': 'bool', 'paused': 'bool', 'speed': 'int',
            'io-status': 'BlockDeviceIoStatus', 'ready': 'bool',
            'status': 'JobStatus',
            'auto-finalize': 'bool', 'auto-dismiss': 'bool',
-           '*error': 'str' } }
+           '*error': 'str' },
+  'discriminator': 'type',
+  'data': {} }
 
 ##
 # @query-block-jobs: