mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
qemu: Remove return value from qemuMonitorDomainWatchdogCallback
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
8ed88fe9a0
commit
bd9a14cf6e
@ -179,10 +179,10 @@ typedef void (*qemuMonitorDomainRTCChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
long long offset,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainWatchdogCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
int action,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainWatchdogCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
int action,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainIOErrorCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *diskAlias,
|
||||
|
@ -788,7 +788,7 @@ qemuProcessHandleRTCChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleWatchdog(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
int action,
|
||||
@ -842,8 +842,6 @@ qemuProcessHandleWatchdog(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virObjectUnlock(vm);
|
||||
virObjectEventStateQueue(driver->domainEventState, watchdogEvent);
|
||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user