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>
int pass,
void *opaque);
-typedef int (*qemuMonitorDomainAcpiOstInfoCallback)(qemuMonitor *mon,
- virDomainObj *vm,
- const char *alias,
- const char *slotType,
- const char *slot,
- unsigned int source,
- unsigned int status,
- void *opaque);
+typedef void (*qemuMonitorDomainAcpiOstInfoCallback)(qemuMonitor *mon,
+ virDomainObj *vm,
+ const char *alias,
+ const char *slotType,
+ const char *slot,
+ unsigned int source,
+ unsigned int status,
+ void *opaque);
typedef int (*qemuMonitorDomainBlockThresholdCallback)(qemuMonitor *mon,
* Note that qemu does not emit the event for all the documented sources or
* devices.
*/
-static int
+static void
qemuProcessHandleAcpiOstInfo(qemuMonitor *mon G_GNUC_UNUSED,
virDomainObj *vm,
const char *alias,
cleanup:
virObjectUnlock(vm);
virObjectEventStateQueue(driver->domainEventState, event);
-
- return 0;
}