[libvirt] [PATCH 0/8] events: Add helpers for driver dispatching

Cole Robinson crobinso at redhat.com
Mon Jan 10 17:38:42 UTC 2011


I noticed that there is quite a bit of code duplication among the
drivers that support domain events. This patch series is an attempt
to consolidate the shared logic.

Patch #1 is the bugfix for https://bugzilla.redhat.com/show_bug.cgi?id=624252
which started me down this path. It can be applied independently of the
refactoring if need be.

Thanks,
Cole

Cole Robinson (8):
  remote: Don't lose track of events when callbacks are slow
  event-test: Simplify debug on/off
  domain_event: Add virDomainEventState structure
  domain_event: Add common domain event queue/flush helpers
  qemu: Use virDomainEventState helpers
  lxc: Use virDomainEventState helpers
  test: Use virDomainEventState helpers
  remote: Use virDomainEventState helpers

 examples/domain-events/events-python/event-test.py |   37 +++--
 src/conf/domain_event.c                            |  163 +++++++++++++++++---
 src/conf/domain_event.h                            |   64 ++++++--
 src/libvirt_private.syms                           |    6 +
 src/lxc/lxc_conf.h                                 |    6 +-
 src/lxc/lxc_driver.c                               |   76 +++------
 src/qemu/qemu_conf.h                               |    6 +-
 src/qemu/qemu_driver.c                             |   80 +++-------
 src/remote/remote_driver.c                         |  162 ++++++++------------
 src/test/test_driver.c                             |  104 ++++---------
 10 files changed, 363 insertions(+), 341 deletions(-)

-- 
1.7.3.3




More information about the libvir-list mailing list