mirror of https://gitee.com/openkylin/libvirt.git
qemu: Remove return value from qemuMonitorDomainRTCChangeCallback
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
1b5097172b
commit
8ed88fe9a0
|
@ -175,10 +175,10 @@ typedef void (*qemuMonitorDomainStopCallback)(qemuMonitor *mon,
|
|||
typedef void (*qemuMonitorDomainResumeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainRTCChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
long long offset,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainRTCChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
long long offset,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainWatchdogCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
int action,
|
||||
|
|
|
@ -745,7 +745,7 @@ qemuProcessHandleResume(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleRTCChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
long long offset,
|
||||
|
@ -785,7 +785,6 @@ qemuProcessHandleRTCChange(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
virObjectUnlock(vm);
|
||||
|
||||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue