mirror of https://gitee.com/openkylin/libvirt.git
qemu: Remove return value from qemuMonitorDomainDeviceDeletedCallback
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
81db1e75b3
commit
cc121412fc
|
@ -238,10 +238,10 @@ typedef void (*qemuMonitorDomainGuestPanicCallback)(qemuMonitor *mon,
|
|||
virDomainObj *vm,
|
||||
qemuMonitorEventPanicInfo *info,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainDeviceDeletedCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainDeviceDeletedCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainNicRxFilterChangedCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
|
|
|
@ -1297,7 +1297,7 @@ qemuProcessHandleGuestPanic(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
void
|
||||
qemuProcessHandleDeviceDeleted(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
|
@ -1330,7 +1330,7 @@ qemuProcessHandleDeviceDeleted(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
|
||||
cleanup:
|
||||
virObjectUnlock(vm);
|
||||
return 0;
|
||||
return;
|
||||
error:
|
||||
qemuProcessEventFree(processEvent);
|
||||
goto cleanup;
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
* This header file should never be used outside unit tests.
|
||||
*/
|
||||
|
||||
int qemuProcessHandleDeviceDeleted(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
void *opaque);
|
||||
void qemuProcessHandleDeviceDeleted(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
void *opaque);
|
||||
|
||||
int qemuProcessQMPInitMonitor(qemuMonitor *mon);
|
||||
|
|
Loading…
Reference in New Issue