mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +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,
|
typedef void (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
|
typedef void (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
unsigned long long actual,
|
unsigned long long actual,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainPMSuspendDiskCallback)(qemuMonitor *mon,
|
typedef int (*qemuMonitorDomainPMSuspendDiskCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
|
@ -1202,7 +1202,7 @@ qemuProcessHandlePMSuspend(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static void
|
||||||
qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
|
qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
unsigned long long actual,
|
unsigned long long actual,
|
||||||
@ -1225,7 +1225,6 @@ qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
|
|
||||||
virObjectEventStateQueue(driver->domainEventState, event);
|
virObjectEventStateQueue(driver->domainEventState, event);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user