mirror of https://gitee.com/openkylin/libvirt.git
qemu: Remove return value from qemuMonitorDomainPMSuspendDiskCallback
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
e8502f79db
commit
05a6da5862
|
@ -231,9 +231,9 @@ typedef void (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
|
|||
virDomainObj *vm,
|
||||
unsigned long long actual,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainPMSuspendDiskCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainPMSuspendDiskCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainGuestPanicCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
qemuMonitorEventPanicInfo *info,
|
||||
|
|
|
@ -1227,7 +1227,7 @@ qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandlePMSuspendDisk(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
void *opaque)
|
||||
|
@ -1265,8 +1265,6 @@ qemuProcessHandlePMSuspendDisk(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
|
||||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue