Re: [libvirt] [PATCHv2 07/14] event: don't let old-style events clobber per-domain events

2014-01-07 Thread Eric Blake
On 01/07/2014 08:24 AM, Eric Blake wrote: > On 01/07/2014 08:14 AM, John Ferlan wrote: >> >> > >>> Signed-off-by: Eric Blake >>> --- >>> src/conf/domain_event.c | 171 >>> >>> src/conf/object_event.c | 96 +++--- >>> src/

Re: [libvirt] [PATCHv2 07/14] event: don't let old-style events clobber per-domain events

2014-01-07 Thread Eric Blake
On 01/07/2014 08:14 AM, John Ferlan wrote: > > >> Signed-off-by: Eric Blake >> --- >> src/conf/domain_event.c | 171 >> >> src/conf/object_event.c | 96 +++--- >> src/conf/object_event_private.h | 9 +++ >> 3 files ch

Re: [libvirt] [PATCHv2 07/14] event: don't let old-style events clobber per-domain events

2014-01-07 Thread John Ferlan
On 01/06/2014 05:27 PM, Eric Blake wrote: > Right now, the older virConnectDomainEventRegister (takes a > function pointer, returns 0 on success) and the newer > virConnectDomainEventRegisterID (takes an eventID, returns a > callbackID) share the underlying implementation (the older > API ends up

[libvirt] [PATCHv2 07/14] event: don't let old-style events clobber per-domain events

2014-01-06 Thread Eric Blake
Right now, the older virConnectDomainEventRegister (takes a function pointer, returns 0 on success) and the newer virConnectDomainEventRegisterID (takes an eventID, returns a callbackID) share the underlying implementation (the older API ends up consuming a callbackID for eventID 0 under the hood).