mirror of https://gitee.com/openkylin/libvirt.git
qemu: Remove return value from qemuMonitorDomainIOErrorCallback
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
bd9a14cf6e
commit
96d98a4b19
|
@ -183,13 +183,13 @@ typedef void (*qemuMonitorDomainWatchdogCallback)(qemuMonitor *mon,
|
|||
virDomainObj *vm,
|
||||
int action,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainIOErrorCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *diskAlias,
|
||||
const char *nodename,
|
||||
int action,
|
||||
const char *reason,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainIOErrorCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *diskAlias,
|
||||
const char *nodename,
|
||||
int action,
|
||||
const char *reason,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainGraphicsCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
int phase,
|
||||
|
|
|
@ -845,7 +845,7 @@ qemuProcessHandleWatchdog(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
const char *diskAlias,
|
||||
|
@ -912,7 +912,6 @@ qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
virObjectEventStateQueue(driver->domainEventState, ioErrorEvent);
|
||||
virObjectEventStateQueue(driver->domainEventState, ioErrorEvent2);
|
||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue