mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
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 *x509dname,
|
||||||
const char *saslUsername,
|
const char *saslUsername,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainBlockJobCallback)(qemuMonitor *mon,
|
typedef void (*qemuMonitorDomainBlockJobCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
const char *diskAlias,
|
const char *diskAlias,
|
||||||
int type,
|
int type,
|
||||||
int status,
|
int status,
|
||||||
const char *error,
|
const char *error,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainJobStatusChangeCallback)(qemuMonitor *mon,
|
typedef int (*qemuMonitorDomainJobStatusChangeCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
const char *jobname,
|
const char *jobname,
|
||||||
|
@ -914,7 +914,7 @@ qemuProcessHandleIOError(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static void
|
||||||
qemuProcessHandleBlockJob(qemuMonitor *mon G_GNUC_UNUSED,
|
qemuProcessHandleBlockJob(qemuMonitor *mon G_GNUC_UNUSED,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
const char *diskAlias,
|
const char *diskAlias,
|
||||||
@ -974,7 +974,6 @@ qemuProcessHandleBlockJob(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
cleanup:
|
cleanup:
|
||||||
qemuProcessEventFree(processEvent);
|
qemuProcessEventFree(processEvent);
|
||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user