diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-04-17 12:56:07 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:49 +0200 |
commit | daa7f2f9467bc5624f04f28d4b01b88f08c6589c (patch) | |
tree | c1e663d665ae433ea35a1d8f9b8974e2465e693c /job.c | |
parent | 80fa2c756b3241f24015a7503a01f7999d4a942d (diff) |
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>
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |