mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemu: Remove return value from qemuMonitorDomainEventCallback
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
7a1b07925c
commit
b2bf8d5bab
@ -155,13 +155,13 @@ typedef void (*qemuMonitorEofNotifyCallback)(qemuMonitor *mon,
|
||||
typedef void (*qemuMonitorErrorNotifyCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainEventCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *event,
|
||||
long long seconds,
|
||||
unsigned int micros,
|
||||
const char *details,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainEventCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *event,
|
||||
long long seconds,
|
||||
unsigned int micros,
|
||||
const char *details,
|
||||
void *opaque);
|
||||
typedef int (*qemuMonitorDomainShutdownCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
virTristateBool guest,
|
||||
|
@ -546,7 +546,7 @@ qemuProcessShutdownOrReboot(virQEMUDriver *driver,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleEvent(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
const char *eventName,
|
||||
@ -567,8 +567,6 @@ qemuProcessHandleEvent(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
|
||||
virObjectUnlock(vm);
|
||||
virObjectEventStateQueue(driver->domainEventState, event);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user