qemu: Remove return value from qemuMonitorDomainBlockThresholdCallback

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:
Peter Krempa 2021-07-20 10:05:06 +02:00
parent a23f9ce576
commit 4d01996633
2 changed files with 7 additions and 9 deletions

View File

@ -277,12 +277,12 @@ typedef void (*qemuMonitorDomainAcpiOstInfoCallback)(qemuMonitor *mon,
void *opaque); void *opaque);
typedef int (*qemuMonitorDomainBlockThresholdCallback)(qemuMonitor *mon, typedef void (*qemuMonitorDomainBlockThresholdCallback)(qemuMonitor *mon,
virDomainObj *vm, virDomainObj *vm,
const char *nodename, const char *nodename,
unsigned long long threshold, unsigned long long threshold,
unsigned long long excess, unsigned long long excess,
void *opaque); void *opaque);
typedef enum { typedef enum {

View File

@ -1431,7 +1431,7 @@ qemuProcessHandleAcpiOstInfo(qemuMonitor *mon G_GNUC_UNUSED,
} }
static int static void
qemuProcessHandleBlockThreshold(qemuMonitor *mon G_GNUC_UNUSED, qemuProcessHandleBlockThreshold(qemuMonitor *mon G_GNUC_UNUSED,
virDomainObj *vm, virDomainObj *vm,
const char *nodename, const char *nodename,
@ -1478,8 +1478,6 @@ qemuProcessHandleBlockThreshold(qemuMonitor *mon G_GNUC_UNUSED,
virObjectUnlock(vm); virObjectUnlock(vm);
virObjectEventStateQueue(driver->domainEventState, eventDevice); virObjectEventStateQueue(driver->domainEventState, eventDevice);
virObjectEventStateQueue(driver->domainEventState, eventSource); virObjectEventStateQueue(driver->domainEventState, eventSource);
return 0;
} }