[libvirt-users] (no subject)

Eric Blake eblake at redhat.com
Tue Apr 9 21:58:58 UTC 2013


[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#virConnectDomainEventRegisterAny
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130409/01209ec4/attachment.sig>


More information about the libvirt-users mailing list