]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Convert Xen & VBox drivers to use virDomainEventState
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 13 Dec 2011 10:39:17 +0000 (10:39 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 19 Dec 2011 11:08:09 +0000 (11:08 +0000)
commita86bbc6003201414e46b2146a32d1ba997149ef4
treed568609e7c4af4b8c8b5b233cbade77f1637ad39
parentb4d579de1eb7988a96f93b54442e25f84ae5a5c8
Convert Xen & VBox drivers to use virDomainEventState

The Xen & VBox drivers deal with callbacks & dispatching of
events directly. All the other drivers use a timer to dispatch
events from a clean stack state, rather than deep inside the
drivers. Convert Xen & VBox over to virDomainEventState so
that they match behaviour of other drivers

* src/conf/domain_event.c: Return count of remaining
  callbacks when unregistering event callback
* src/vbox/vbox_tmpl.c, src/xen/xen_driver.c,
  src/xen/xen_driver.h: Convert to virDomainEventState
src/conf/domain_event.c
src/vbox/vbox_tmpl.c
src/xen/xen_driver.c
src/xen/xen_driver.h