blockjob: support new BLOCK_JOB_2 event
commit09a14b5d5e530e92c4c5f518b1188215140785b8
authorEric Blake <eblake@redhat.com>
Wed, 18 Jun 2014 16:49:27 +0000 (18 10:49 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 18 Jun 2014 16:49:27 +0000 (18 10:49 -0600)
tree3fe9045c9d4289b9b2effc84f6ab7ee777d328d8
parentb5e36a39581dbb8f64a9891fcd976c58af7f1e1e
blockjob: support new BLOCK_JOB_2 event

Libvirt 1.2.6 is introducing a new block job event that passes disk
information by target device rather than host file name.  At the
python level, we are just a passthrough, so we can reuse all the
existing code and just wire up the new enum value.

* libvirt-override-virConnect.py
(_dispatchDomainEventBlockPullCallback): Rename...
(_dispatchDomainEventBlockJobCallback): ...to this, and make
generic to both events.
* libvirt-override.c
(libvirt_virConnectDomainEventBlockJobCallback): Match naming.
(libvirt_virConnectDomainEventRegisterAny): Allow new registration.

Signed-off-by: Eric Blake <eblake@redhat.com>
libvirt-override-virConnect.py
libvirt-override.c