aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2023-10-31 14:54:28 +0100
committerKevin Wolf <kwolf@redhat.com>2023-10-31 18:20:29 +0100
commit701efc9f2d68707e20eb6f1f9e7781aa639cf0cb (patch)
tree10229f788581e05649ffe79b11f4a853fe662d5b /qapi
parentd67c54d05fe05cf1b6a3b2cf36cc3832d2a0ce05 (diff)
downloadqemu-701efc9f2d68707e20eb6f1f9e7781aa639cf0cb.zip
qemu-701efc9f2d68707e20eb6f1f9e7781aa639cf0cb.tar.gz
qemu-701efc9f2d68707e20eb6f1f9e7781aa639cf0cb.tar.bz2
qapi/block-core: turn BlockJobInfo into a union
In preparation to additionally return job-type-specific information. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-ID: <20231031135431.393137-8-f.ebner@proxmox.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-core.json8
1 files changed, 5 insertions, 3 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 9d03210..dca0e94 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1395,13 +1395,15 @@
#
# 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: