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);