search for: virconnectdomaineventcallback

Displaying 1 result from an estimated 1 matches for "virconnectdomaineventcallback".

2011 Nov 04
1
Event&Callback in QEMU
Hi buddy, I wanna to monitor a domain's life cycle event, so i register a event an a virConnectDomainEventCallback, the code segment is as below: ------------------------ int DomainEventCallback(virConnectPtr conn, virDomainPtr dom, int event, int detail, void * opaque){ /*My code */ ....... } int main(){ /* .....*/ virDomainPtr dom = domain.getDomains("xp"); virF...