diff options
author | Max Reitz <mreitz@redhat.com> | 2018-06-13 20:18:20 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-06-18 17:05:11 +0200 |
commit | 62f13600593322b8e796f15fd6742064fba6ab65 (patch) | |
tree | c8942d45131f9659ac1d20e272c9ba0ae54ab289 /job.c | |
parent | 429076e88dec48ce22a6fb3ba11e5ccb6134f62d (diff) |
job: Add job_progress_increase_remaining()
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20180613181823.13618-12-mreitz@redhat.com
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -385,6 +385,11 @@ void job_progress_set_remaining(Job *job, uint64_t remaining) job->progress_total = job->progress_current + remaining; } +void job_progress_increase_remaining(Job *job, uint64_t delta) +{ + job->progress_total += delta; +} + void job_event_cancelled(Job *job) { notifier_list_notify(&job->on_finalize_cancelled, job); |