mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
qemu: Remove return value from qemuMonitorDomainBalloonChangeCallback
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
fa0af946d8
commit
e8502f79db
@ -227,10 +227,10 @@ typedef void (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
|
||||
typedef void (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
unsigned long long actual,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
unsigned long long actual,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainPMSuspendDiskCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
|
@ -1202,7 +1202,7 @@ qemuProcessHandlePMSuspend(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
unsigned long long actual,
|
||||
@ -1225,7 +1225,6 @@ qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virObjectUnlock(vm);
|
||||
|
||||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user