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

View File

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

View File

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