Re: [libvirt] [PATCH 3/3] Expose event loop implementation as a public API

2011-03-04 Thread Daniel Veillard
On Fri, Mar 04, 2011 at 10:19:20AM +, Daniel P. Berrange wrote: > On Thu, Mar 03, 2011 at 04:13:08PM -0700, Eric Blake wrote: > > On 03/03/2011 07:21 AM, Daniel P. Berrange wrote: > > > +LIBVIRT_0.9.0 { > > > +global: > > > +virEventRegisterDefaultImpl; > > > +virEventRunDe

Re: [libvirt] [PATCH 3/3] Expose event loop implementation as a public API

2011-03-04 Thread Daniel P. Berrange
On Thu, Mar 03, 2011 at 04:13:08PM -0700, Eric Blake wrote: > On 03/03/2011 07:21 AM, Daniel P. Berrange wrote: > > Not all applications have an existing event loop they need > > to integrate with. Forcing them to implement the libvirt > > event loop integration APIs is an undue burden. This just >

Re: [libvirt] [PATCH 3/3] Expose event loop implementation as a public API

2011-03-03 Thread Eric Blake
On 03/03/2011 07:21 AM, Daniel P. Berrange wrote: > Not all applications have an existing event loop they need > to integrate with. Forcing them to implement the libvirt > event loop integration APIs is an undue burden. This just > exposes our simple poll() based implementation for apps > to use. S

[libvirt] [PATCH 3/3] Expose event loop implementation as a public API

2011-03-03 Thread Daniel P. Berrange
Not all applications have an existing event loop they need to integrate with. Forcing them to implement the libvirt event loop integration APIs is an undue burden. This just exposes our simple poll() based implementation for apps to use. So instead of calling virEventRegister(callbacks...)