[libvirt] (no subject)

I wanted to check if event loop integration was supported even for remote applications using libvirt. My application would like to make non-blocking calls and also recv asynchronous notification remotely. Can some one point out if its supported. thanks

[please provide subject lines; your email was nearly eaten by spam filters] On 04/09/2013 03:51 PM, arvind viswanathan wrote:
I wanted to check if event loop integration was supported even for remote applications using libvirt. My application would like to make non-blocking calls and also recv asynchronous notification remotely. Can some one point out if its supported.
Yes, libvirt is able to provide asynchronous event notifications. Check out http://libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventRegisterAn... for the API for registering your callback function to be called when the right event happens. Also, take a look at the examples/domain-events/ directory inside the libvirt tarball, which includes both C and python examples for acting on asynchronous events. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
arvind viswanathan
-
Eric Blake