summaryrefslogtreecommitdiffstats
path: root/include/block/blockjob.h
diff options
context:
space:
mode:
authorKevin Wolf2018-01-19 15:54:40 +0100
committerKevin Wolf2018-05-15 16:11:50 +0200
commitbd21935b50d100d8da8c05cd3c2009f0f3432cb4 (patch)
treea72b8ecf4fc95088942038d0e9da20fa78093e2b /include/block/blockjob.h
parentblockjob: Introduce block_job_ratelimit_get_delay() (diff)
downloadqemu-bd21935b50d100d8da8c05cd3c2009f0f3432cb4.tar.gz
qemu-bd21935b50d100d8da8c05cd3c2009f0f3432cb4.tar.xz
qemu-bd21935b50d100d8da8c05cd3c2009f0f3432cb4.zip
blockjob: Add block_job_driver()
The backup block job directly accesses the driver field in BlockJob. Add a wrapper for getting it. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include/block/blockjob.h')
-rw-r--r--include/block/blockjob.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/block/blockjob.h b/include/block/blockjob.h
index 82f52f4b14..0f56f723de 100644
--- a/include/block/blockjob.h
+++ b/include/block/blockjob.h
@@ -452,4 +452,11 @@ void block_job_txn_add_job(BlockJobTxn *txn, BlockJob *job);
*/
bool block_job_is_internal(BlockJob *job);
+/**
+ * block_job_driver:
+ *
+ * Returns the driver associated with a block job.
+ */
+const BlockJobDriver *block_job_driver(BlockJob *job);
+
#endif