mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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:
parent
7eaa8fb57d
commit
3d70ff53b6
18 changed files with 171 additions and 209 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue