[libvirt] [PATCH] virDomainEventCallbackListAddID: allow different domains to register lifecycle events

boettcher at tudos.org boettcher at tudos.org
Wed Jun 29 12:21:48 UTC 2011


Hello,

I had trouble of registering an VIR_DOMAIN_EVENT_ID_LIFECYLCE event for
different domains separately.

First I invoke [0] with one domain, and later with another one. For the
second call the operation will be denied by
"libvir: error : internal error event callback already tracked".

I assume this should be possible for different domains to register
LIFECYLCE handler separately. In that case please consider the attached
patch.

Thanks,

Alex B.


[0]
virConnectDomainEventRegisterAny(
 conn, domX, VIR_DOM_EVENT_ID_LIFECYLCE,
 VIR_DOMAIN_EVENT_CALLBACK(myDomainEventCallback2),
 strdup("callback 2"), myFreeFunc);
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-0.9.2.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110629/17f043ec/attachment-0001.ksh>


More information about the libvir-list mailing list