Add support for the suspend eventv0.9.11-rc1
commitdc2f75d35a6461c896a738d092dc973067d0dbd4
authorOsier Yang <[email protected]>
Fri, 23 Mar 2012 14:50:36 +0000 (23 22:50 +0800)
committerOsier Yang <[email protected]>
Fri, 23 Mar 2012 15:12:18 +0000 (23 23:12 +0800)
treeae086163d4e9b9847ba170aab173ea50bcc61a4b
parent29b16a45d77586672631537bfe877455fa5527ac
Add support for the suspend event

This patch introduces a new event type for the QMP event
SUSPEND:

    VIR_DOMAIN_EVENT_ID_PMSUSPEND

The event doesn't take any data, but considering there might
be reason for wakeup in future, the callback definition is:

typedef void
(*virConnectDomainEventSuspendCallback)(virConnectPtr conn,
                                        virDomainPtr dom,
                                        int reason,
                                        void *opaque);

"reason" is unused currently, always passes "0".
libvirt-override-virConnect.py
libvirt-override.c