diff options
author | Kevin Wolf | 2018-04-23 12:24:16 +0200 |
---|---|---|
committer | Kevin Wolf | 2018-05-23 14:30:50 +0200 |
commit | 3453d97243c72988c89a0105fa9546890eae7bd4 (patch) | |
tree | b1319fc9423528d2bcb84e8378e877f25e6bd248 /include/block/blockjob_int.h | |
parent | job: Add job_drain() (diff) | |
download | qemu-3453d97243c72988c89a0105fa9546890eae7bd4.tar.gz qemu-3453d97243c72988c89a0105fa9546890eae7bd4.tar.xz qemu-3453d97243c72988c89a0105fa9546890eae7bd4.zip |
job: Move .complete callback to Job
This moves the .complete callback that tells a READY job to complete
from BlockJobDriver to JobDriver. The wrapper function job_complete()
doesn't require anything block job specific any more and can be moved
to Job.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block/blockjob_int.h')
-rw-r--r-- | include/block/blockjob_int.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/block/blockjob_int.h b/include/block/blockjob_int.h index 38fe22d7e0..b8ca7bb0c9 100644 --- a/include/block/blockjob_int.h +++ b/include/block/blockjob_int.h @@ -39,12 +39,6 @@ struct BlockJobDriver { JobDriver job_driver; /** - * Optional callback for job types whose completion must be triggered - * manually. - */ - void (*complete)(BlockJob *job, Error **errp); - - /** * If the callback is not NULL, prepare will be invoked when all the jobs * belonging to the same transaction complete; or upon this job's completion * if it is not in a transaction. |