mirror of https://gitee.com/openkylin/libvirt.git
qemu: Remove return value from qemuMonitorDomainShutdownCallback
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
b2bf8d5bab
commit
40950f60fc
|
@ -162,10 +162,10 @@ typedef void (*qemuMonitorDomainEventCallback)(qemuMonitor *mon,
|
|||
unsigned int micros,
|
||||
const char *details,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainShutdownCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
virTristateBool guest,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainShutdownCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
virTristateBool guest,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainResetCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
|
|
|
@ -570,7 +570,7 @@ qemuProcessHandleEvent(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleShutdown(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
virTristateBool guest_initiated,
|
||||
|
@ -642,8 +642,6 @@ qemuProcessHandleShutdown(qemuMonitor *mon G_GNUC_UNUSED,
|
|||
unlock:
|
||||
virObjectUnlock(vm);
|
||||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue