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>
This commit is contained in:
Kevin Wolf 2018-04-24 16:13:52 +02:00
parent 7eaa8fb57d
commit 3d70ff53b6
18 changed files with 171 additions and 209 deletions

View file

@ -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);
}