jobs: remove .exit callback
commitccbfb3319aa265e71c16dac976ff857d0a5bcb4b
authorJohn Snow <jsnow@redhat.com>
Thu, 6 Sep 2018 13:02:20 +0000 (6 09:02 -0400)
committerMax Reitz <mreitz@redhat.com>
Tue, 25 Sep 2018 13:31:15 +0000 (25 15:31 +0200)
tree07ae805e6bc3e66a19c5b9bad1683de3363d1b83
parente4dad4275d51b594c8abbe726a4927f6f388e427
jobs: remove .exit callback

Now that all of the jobs use the component finalization callbacks,
there's no use for the heavy-hammer .exit callback anymore.

job_exit becomes a glorified type shim so that we can call
job_completed from aio_bh_schedule_oneshot.

Move these three functions down into job.c to eliminate a
forward reference.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20180906130225.5118-12-jsnow@redhat.com
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
include/qemu/job.h
job.c