mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
qemu: Remove return value from qemuMonitorDomainJobStatusChangeCallback
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
5bc4f8dd0f
commit
9b69147c05
@ -210,11 +210,11 @@ typedef void (*qemuMonitorDomainBlockJobCallback)(qemuMonitor *mon,
|
||||
int status,
|
||||
const char *error,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainJobStatusChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *jobname,
|
||||
int status,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainJobStatusChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *jobname,
|
||||
int status,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainTrayChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
|
@ -977,7 +977,7 @@ qemuProcessHandleBlockJob(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleJobStatusChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
const char *jobname,
|
||||
@ -1034,7 +1034,6 @@ qemuProcessHandleJobStatusChange(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
cleanup:
|
||||
qemuProcessEventFree(processEvent);
|
||||
virObjectUnlock(vm);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user