On Thu, Dec 12, 2013 at 06:04:05PM +0000, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange(a)redhat.com>
Instead of having the object event code have to know about each
type of event and their dispatch functions, associate a dispatch
function with the object instance. The dispatch code can thus be
significantly simplified.
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
src/conf/domain_event.c | 16 ++++++---
src/conf/domain_event.h | 7 ----
src/conf/network_event.c | 8 ++---
src/conf/network_event.h | 6 ----
src/conf/object_event.c | 72 +++++++++++------------------------------
src/conf/object_event_private.h | 9 +++++-
6 files changed, 42 insertions(+), 76 deletions(-)
ACK,
Martin