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:
Peter Krempa 2021-07-20 10:05:06 +02:00
parent b0487ba754
commit 5bc4f8dd0f
2 changed files with 8 additions and 9 deletions

View File

@ -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,

View File

@ -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;
} }