mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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,
|
virDomainObj *vm,
|
||||||
int action,
|
int action,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainIOErrorCallback)(qemuMonitor *mon,
|
typedef void (*qemuMonitorDomainIOErrorCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
const char *diskAlias,
|
const char *diskAlias,
|
||||||
const char *nodename,
|
const char *nodename,
|
||||||
int action,
|
int action,
|
||||||
const char *reason,
|
const char *reason,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainGraphicsCallback)(qemuMonitor *mon,
|
typedef int (*qemuMonitorDomainGraphicsCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
int phase,
|
int phase,
|
||||||
|
@ -845,7 +845,7 @@ qemuProcessHandleWatchdog(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static void
|
||||||
qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
const char *diskAlias,
|
const char *diskAlias,
|
||||||
@ -912,7 +912,6 @@ qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
virObjectEventStateQueue(driver->domainEventState, ioErrorEvent);
|
virObjectEventStateQueue(driver->domainEventState, ioErrorEvent);
|
||||||
virObjectEventStateQueue(driver->domainEventState, ioErrorEvent2);
|
virObjectEventStateQueue(driver->domainEventState, ioErrorEvent2);
|
||||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user