mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +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,7 +203,7 @@ 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,
|
||||||
|
@ -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