]> git.proxmox.com Git - mirror_qemu.git/commit - blockjob.c
job: Add job_event_*()
authorKevin Wolf <kwolf@redhat.com>
Mon, 23 Apr 2018 16:04:57 +0000 (18:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 23 May 2018 12:30:50 +0000 (14:30 +0200)
commit139a9f020d49e9f863e0d46fd3d0b440dfb3b9d7
tree2d38eb4bfd2f2f8beb1b9fdc0ea6180b06e9a092
parent5d4f376998bc6b01402b90634385b082b2eb5c5b
job: Add job_event_*()

Go through the Job layer in order to send QMP events. For the moment,
these functions only call a notifier in the BlockJob layer that sends
the existing commands.

This uses notifiers rather than JobDriver callbacks because internal
users of jobs won't receive QMP events, but might still be interested
in getting notified for the events.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
blockjob.c
include/block/blockjob.h
include/qemu/job.h
job.c