mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 14:23:53 -06:00
job: Move cancelled to Job
We cannot yet move the whole logic around job cancelling to Job because it depends on quite a few other things that are still only in BlockJob, but we can move the cancelled field at least. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
80fa2c756b
commit
daa7f2f946
11 changed files with 50 additions and 52 deletions
5
job.c
5
job.c
|
@ -95,6 +95,11 @@ const char *job_type_str(const Job *job)
|
|||
return JobType_str(job_type(job));
|
||||
}
|
||||
|
||||
bool job_is_cancelled(Job *job)
|
||||
{
|
||||
return job->cancelled;
|
||||
}
|
||||
|
||||
Job *job_next(Job *job)
|
||||
{
|
||||
if (!job) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue