libvirt/examples/domain-events
Cole Robinson f2fb235b1d python: events: Fix C->Python handle callback prototype
If registering our own event loop implementation written in python,
any handles or timeouts callbacks registered by libvirt C code must
be wrapped in a python function. There is some argument trickery that
makes this all work, by wrapping the user passed opaque value in
a tuple, along with the callback function.

Problem is, the current setup requires the user's event loop to know
about this trickery, rather than just treating the opaque value
as truly opaque.

Fix this in a backwards compatible manner, and adjust the example
python event loop to do things the proper way.
2011-06-21 10:08:48 -04:00
..
events-c Introduce a new event emitted when a virtualization failure occurs 2011-05-29 20:21:53 +08:00
events-python python: events: Fix C->Python handle callback prototype 2011-06-21 10:08:48 -04:00