mirror of https://gitee.com/openkylin/libvirt.git
qemu: Remove return value from qemuMonitorDomainPMWakeupCallback
Change the callback prototype and fix the callback registered in the process code. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f4b36cd87c
commit
86a5925edd
|
@ -221,9 +221,9 @@ typedef void (*qemuMonitorDomainTrayChangeCallback)(qemuMonitor *mon,
|
|||
const char *devid,
|
||||
int reason,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
|
|
|
@ -1125,7 +1125,7 @@ qemuProcessHandleTrayChange(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
void *opaque)
|
||||
|
@ -1160,7 +1160,6 @@ qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
virObjectUnlock(vm);
|
||||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue