mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemu: Remove return value from qemuMonitorDomainDumpCompletedCallback
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
4d01996633
commit
a55093ec28
@ -303,12 +303,12 @@ struct _qemuMonitorDumpStats {
|
|||||||
unsigned long long total; /* total bytes to be written */
|
unsigned long long total; /* total bytes to be written */
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef int (*qemuMonitorDomainDumpCompletedCallback)(qemuMonitor *mon,
|
typedef void (*qemuMonitorDomainDumpCompletedCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
int status,
|
int status,
|
||||||
qemuMonitorDumpStats *stats,
|
qemuMonitorDumpStats *stats,
|
||||||
const char *error,
|
const char *error,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
|
|
||||||
typedef int (*qemuMonitorDomainPRManagerStatusChangedCallback)(qemuMonitor *mon,
|
typedef int (*qemuMonitorDomainPRManagerStatusChangedCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
|
@ -1663,7 +1663,7 @@ qemuProcessHandleMigrationPass(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static void
|
||||||
qemuProcessHandleDumpCompleted(qemuMonitor *mon G_GNUC_UNUSED,
|
qemuProcessHandleDumpCompleted(qemuMonitor *mon G_GNUC_UNUSED,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
int status,
|
int status,
|
||||||
@ -1700,7 +1700,6 @@ qemuProcessHandleDumpCompleted(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
cleanup:
|
cleanup:
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user