Re: [libvirt] [PATCH] Update event loop example programs to demonstrate best practice

2011-03-29 Thread Daniel P. Berrange
On Wed, Mar 23, 2011 at 09:31:56AM -0600, Eric Blake wrote: > On 03/23/2011 09:24 AM, Daniel P. Berrange wrote: > > The example C event loop code is a nasty hack and not compliant > > with the require API semantics. Delete this, so that developers > > don't mistakenly copy it. Instead call the new

Re: [libvirt] [PATCH] Update event loop example programs to demonstrate best practice

2011-03-23 Thread Eric Blake
On 03/23/2011 09:24 AM, Daniel P. Berrange wrote: > The example C event loop code is a nasty hack and not compliant > with the require API semantics. Delete this, so that developers > don't mistakenly copy it. Instead call the new public event loop > APIs. > > Update the python event loop example,

[libvirt] [PATCH] Update event loop example programs to demonstrate best practice

2011-03-23 Thread Daniel P. Berrange
The example C event loop code is a nasty hack and not compliant with the require API semantics. Delete this, so that developers don't mistakenly copy it. Instead call the new public event loop APIs. Update the python event loop example, so that it can optionally use the public event APIs, as an al