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>
const char *devid,
int reason,
void *opaque);
-typedef int (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
- virDomainObj *vm,
- void *opaque);
+typedef void (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
+ virDomainObj *vm,
+ void *opaque);
typedef int (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
virDomainObj *vm,
void *opaque);
virObjectEventStateQueue(driver->domainEventState, event);
}
-static int
+static void
qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
virDomainObj *vm,
void *opaque)
virObjectUnlock(vm);
virObjectEventStateQueue(driver->domainEventState, event);
virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
- return 0;
}
static int