[libvirt] [PATCH 5/7] Associate a dispatch function with the event objects

Martin Kletzander mkletzan at redhat.com
Fri Dec 13 10:11:37 UTC 2013


On Thu, Dec 12, 2013 at 06:04:05PM +0000, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131213/0af4a733/attachment-0001.sig>


More information about the libvir-list mailing list