• John Snow's avatar
    jobs: remove ret argument to job_completed; privatize it · 404ff28d
    John Snow authored
    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: 's avatarJohn Snow <jsnow@redhat.com>
    Message-id: 20180830015734.19765-9-jsnow@redhat.com
    Reviewed-by: 's avatarMax Reitz <mreitz@redhat.com>
    Signed-off-by: 's avatarMax Reitz <mreitz@redhat.com>
    404ff28d