1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-12-17 16:26:15 +03:00

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.
This commit is contained in:
Jiri Denemark
2012-09-06 16:56:08 +02:00
parent 51907779ee
commit afab4824eb
3 changed files with 6 additions and 4 deletions

View File

@@ -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);