mirror of https://gitee.com/openkylin/libvirt.git
qemu: Remove return value from qemuMonitorDomainBlockJobCallback
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
b0487ba754
commit
5bc4f8dd0f
|
@ -203,13 +203,13 @@ typedef void (*qemuMonitorDomainGraphicsCallback)(qemuMonitor *mon,
|
|||
const char *x509dname,
|
||||
const char *saslUsername,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainBlockJobCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *diskAlias,
|
||||
int type,
|
||||
int status,
|
||||
const char *error,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainBlockJobCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *diskAlias,
|
||||
int type,
|
||||
int status,
|
||||
const char *error,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainJobStatusChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *jobname,
|
||||
|
|
|
@ -914,7 +914,7 @@ qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleBlockJob(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
const char *diskAlias,
|
||||
|
@ -974,7 +974,6 @@ qemuProcessHandleBlockJob(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
cleanup:
|
||||
qemuProcessEventFree(processEvent);
|
||||
virObjectUnlock(vm);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue