[libvirt] PATCH: Change signature of virEventAddHandle to allow multiple calls per FD

Daniel Veillard veillard at redhat.com
Wed Nov 19 13:23:03 UTC 2008


On Mon, Nov 17, 2008 at 04:58:51PM +0000, Daniel P. Berrange wrote:
> As discussed previously, this patch changes the semantics of the public
> API for dealing with file handle watches. Previously we would track the
> watch based on  the file handle number directly. With this change, the
> virEventAddHandle method returns an integer 'watch' number. This watch
> number is required when unregistering or updating a watch. The watch is
> also passed into the callback when an event occurrs. This allows for
> multiple watches to be registered against the same file descriptor.
> 
> There was quite alot of fallout from this patch requiring many callers
> to be updated to comply with the new semantics.

  Okay, +1

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list