summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Denemark <jdenemar@redhat.com>2012-09-06 16:56:08 +0200
committerJiri Denemark <jdenemar@redhat.com>2012-09-07 09:38:22 +0200
commite20653622809a78476dfaed83f31d47cfb39fd5b (patch)
tree9b36c087097db9c231a058454b83d71978f6850e
parent16ab57206edaf47d5cff9dea89a944ff1c5dc761 (diff)
downloadlibvirt-python-v6-e20653622809a78476dfaed83f31d47cfb39fd5b.tar.gz
libvirt-python-v6-e20653622809a78476dfaed83f31d47cfb39fd5b.tar.xz
libvirt-python-v6-e20653622809a78476dfaed83f31d47cfb39fd5b.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.
-rw-r--r--libvirt-override.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 1e3ad89..ee6a776 100644
--- a/libvirt-override.c
+++ b/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);