blockjob: Split block_job_event_pending()
commit5d4f376998bc6b01402b90634385b082b2eb5c5b
authorKevin Wolf <kwolf@redhat.com>
Mon, 23 Apr 2018 15:09:42 +0000 (23 17:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 23 May 2018 12:30:50 +0000 (23 14:30 +0200)
treeea51785327bcc133d007727864ee0f0dd51f249c
parentbb02b65c7d57e4f2136f39bfba95cc68d89eb216
blockjob: Split block_job_event_pending()

block_job_event_pending() doesn't only send a QMP event, but it also
transitions to the PENDING state. Split the function so that we get one
part only sending the event (like other block_job_event_* functions) and
another part that does the state transition.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
blockjob.c