]> xenbits.xensource.com Git - libvirt.git/commit
Add support for the suspend event
authorOsier Yang <jyang@redhat.com>
Fri, 23 Mar 2012 14:50:36 +0000 (22:50 +0800)
committerOsier Yang <jyang@redhat.com>
Fri, 23 Mar 2012 15:12:18 +0000 (23:12 +0800)
commit487c0633819b52590baa0084bf14769a3beebfaf
tree8f2bbfaceba6307def359c1932671d6595fca4ff
parent57ddcc235ac7f80d87f46c8b8cc5ce17e86b8b9b
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".
16 files changed:
daemon/remote.c
examples/domain-events/events-c/event-test.c
examples/domain-events/events-python/event-test.py
include/libvirt/libvirt.h.in
python/libvirt-override-virConnect.py
python/libvirt-override.c
src/conf/domain_event.c
src/conf/domain_event.h
src/libvirt_private.syms
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c
src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs