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

29 Jun
2011
29 Jun
'11
8:21 a.m.
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);
5186
Age (days ago)
5186
Last active (days ago)
0 comments
1 participants
participants (1)
-
boettcher@tudos.org