[libvirt] [RFC] domain-events-python

Ben Guthro bguthro at virtualiron.com
Tue Oct 28 13:09:53 UTC 2008

Attached is a preliminary patch implementing the python bindings for domain events, and the EventImpl code.

This implements a python test app equivalent to the code in the C event-test app. Contrary to what Daniel B originally suggested, I thought that the EventImpl would be useful to expose for apps that are strictly using python, and not integrating with glib, or another event loop. It also makes the test case easier to debug.

I have not marked this with [PATCH] in the subject, as I don't believe it is quite complete. 

I am still having a few issues with the Refcounting in the C code, and I think there is still some cleanup code I haven't quite handled quite right.

That said - I would welcome some comments/suggestions on this thus far, to make sure I'm not going off in a direction contrary to where you think I should be.

 examples/domain-events/events-python/event-test.py |  187 ++++++++
 python/generator.py                                |    8
 python/libvir.c                                    |  454 +++++++++++++++++++++
 python/libvir.py                                   |   20
 python/libvirt_wrap.h                              |   27 +
 python/types.c                                     |   48 ++
 6 files changed, 740 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: events-python.patch
Type: text/x-patch
Size: 27244 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081028/50feeaa6/attachment-0001.bin>

More information about the libvir-list mailing list