diff options
author | Jiri Denemark <jdenemar@redhat.com> | 2012-09-06 16:56:08 +0200 |
---|---|---|
committer | Jiri Denemark <jdenemar@redhat.com> | 2012-09-07 09:38:22 +0200 |
commit | afab4824ebe8b5a03dcdd3aa6b70359224219cd2 (patch) | |
tree | d37a7b92e6881200ee1d1fdc3f5836953d851ae0 /python | |
parent | virsh: Update only changed scheduler tunables (diff) | |
download | libvirt-afab4824ebe8b5a03dcdd3aa6b70359224219cd2.tar.gz libvirt-afab4824ebe8b5a03dcdd3aa6b70359224219cd2.tar.bz2 libvirt-afab4824ebe8b5a03dcdd3aa6b70359224219cd2.zip |
Fix PMSuspend and PMWakeup events
The unused reason parameter of PM{Suspend,Wakeup} event callbacks was
completely ignored in lot of places and those events were not actually
working at all.
Diffstat (limited to 'python')
-rw-r--r-- | python/libvirt-override.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/libvirt-override.c b/python/libvirt-override.c index 1e3ad89f1..ee6a77645 100644 --- a/python/libvirt-override.c +++ b/python/libvirt-override.c @@ -5331,7 +5331,7 @@ libvirt_virConnectDomainEventPMWakeupCallback(virConnectPtr conn ATTRIBUTE_UNUSE /* Call the Callback Dispatcher */ pyobj_ret = PyObject_CallMethod(pyobj_conn, (char*)"_dispatchDomainEventPMWakeupCallback", - (char*)"OO", + (char*)"OiO", pyobj_dom, reason, pyobj_cbData); @@ -5378,7 +5378,7 @@ libvirt_virConnectDomainEventPMSuspendCallback(virConnectPtr conn ATTRIBUTE_UNUS /* Call the Callback Dispatcher */ pyobj_ret = PyObject_CallMethod(pyobj_conn, (char*)"_dispatchDomainEventPMSuspendCallback", - (char*)"OO", + (char*)"OiO", pyobj_dom, reason, pyobj_cbData); |