diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-04-24 16:13:52 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:51 +0200 |
commit | 3d70ff53b6bf90d9eec6f97024ec9895f6799d9e (patch) | |
tree | 947adf7d4422c78235ff4b8f2a31fac0085efc9a /block/backup.c | |
parent | 7eaa8fb57da96301f4a8ce176ad503f80efc7cc0 (diff) | |
download | qemu-3d70ff53b6bf90d9eec6f97024ec9895f6799d9e.zip qemu-3d70ff53b6bf90d9eec6f97024ec9895f6799d9e.tar.gz qemu-3d70ff53b6bf90d9eec6f97024ec9895f6799d9e.tar.bz2 |
job: Move completion and cancellation to Job
This moves the top-level job completion and cancellation functions from
BlockJob to Job.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/backup.c')
-rw-r--r-- | block/backup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/backup.c b/block/backup.c index 6172f90..b13f91d 100644 --- a/block/backup.c +++ b/block/backup.c @@ -319,10 +319,9 @@ typedef struct { static void backup_complete(Job *job, void *opaque) { - BlockJob *bjob = container_of(job, BlockJob, job); BackupCompleteData *data = opaque; - block_job_completed(bjob, data->ret); + job_completed(job, data->ret); g_free(data); } |