mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Remove return value from qemuMonitorDomainPMWakeupCallback
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
f4b36cd87c
commit
86a5925edd
@ -221,7 +221,7 @@ typedef void (*qemuMonitorDomainTrayChangeCallback)(qemuMonitor *mon,
|
|||||||
const char *devid,
|
const char *devid,
|
||||||
int reason,
|
int reason,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
|
typedef void (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
typedef int (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
|
typedef int (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
|
||||||
|
@ -1125,7 +1125,7 @@ qemuProcessHandleTrayChange(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
virObjectEventStateQueue(driver->domainEventState, event);
|
virObjectEventStateQueue(driver->domainEventState, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static void
|
||||||
qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
|
qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
void *opaque)
|
void *opaque)
|
||||||
@ -1160,7 +1160,6 @@ qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
|
|||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
virObjectEventStateQueue(driver->domainEventState, event);
|
virObjectEventStateQueue(driver->domainEventState, event);
|
||||||
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user