]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - include/block/blockjob.h
blockjob: Add block_job_get()
[thirdparty/qemu.git] / include / block / blockjob.h
index 97b86f109f3a777df6f1a68060a5ff01a5258968..934bf1ce2d50ae7d31aeb367be4a799867b0f484 100644 (file)
@@ -211,6 +211,16 @@ struct BlockJob {
  */
 BlockJob *block_job_next(BlockJob *job);
 
+/**
+ * block_job_get:
+ * @id: The id of the block job.
+ *
+ * Get the block job identified by @id (which must not be %NULL).
+ *
+ * Returns the requested job, or %NULL if it doesn't exist.
+ */
+BlockJob *block_job_get(const char *id);
+
 /**
  * block_job_create:
  * @job_type: The class object for the newly-created job.