]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/block/blockjob_int.h
blockjob: add .clean property
[mirror_qemu.git] / include / block / blockjob_int.h
index 40275e44374691969629013d247107f01c927147..60d91a06786459ceeb5516289e548a30b0403191 100644 (file)
@@ -73,6 +73,14 @@ struct BlockJobDriver {
      */
     void (*abort)(BlockJob *job);
 
+    /**
+     * If the callback is not NULL, it will be invoked after a call to either
+     * .commit() or .abort(). Regardless of which callback is invoked after
+     * completion, .clean() will always be called, even if the job does not
+     * belong to a transaction group.
+     */
+    void (*clean)(BlockJob *job);
+
     /**
      * If the callback is not NULL, it will be invoked when the job transitions
      * into the paused state.  Paused jobs must not perform any asynchronous