diff options
author | John Snow | 2018-08-30 03:57:33 +0200 |
---|---|---|
committer | Max Reitz | 2018-08-31 16:28:33 +0200 |
commit | 404ff28d6ae59fc1c24d631710d4063fc68aed03 (patch) | |
tree | 3a3372e88ef7416810959e99d312d0ac7c6defbe /block/commit.c | |
parent | block/backup: make function variables consistently named (diff) | |
download | qemu-404ff28d6ae59fc1c24d631710d4063fc68aed03.tar.gz qemu-404ff28d6ae59fc1c24d631710d4063fc68aed03.tar.xz qemu-404ff28d6ae59fc1c24d631710d4063fc68aed03.zip |
jobs: remove ret argument to job_completed; privatize it
Jobs are now expected to return their retcode on the stack, from the
.run callback, so we can remove that argument.
job_cancel does not need to set -ECANCELED because job_completed will
update the return code itself if the job was canceled.
While we're here, make job_completed static to job.c and remove it from
job.h; move the documentation of return code to the .run() callback and
to the job->ret property, accordingly.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20180830015734.19765-9-jsnow@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions