mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu: Remove return value from qemuMonitorDomainSerialChangeCallback
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
f3d62ee3a5
commit
6e8289585b
@ -247,11 +247,11 @@ typedef void (*qemuMonitorDomainNicRxFilterChangedCallback)(qemuMonitor *mon,
|
||||
const char *devAlias,
|
||||
void *opaque);
|
||||
|
||||
typedef int (*qemuMonitorDomainSerialChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
bool connected,
|
||||
void *opaque);
|
||||
typedef void (*qemuMonitorDomainSerialChangeCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
bool connected,
|
||||
void *opaque);
|
||||
|
||||
typedef int (*qemuMonitorDomainSpiceMigratedCallback)(qemuMonitor *mon,
|
||||
virDomainObj *vm,
|
||||
|
@ -1521,7 +1521,7 @@ qemuProcessHandleNicRxFilterChanged(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuProcessHandleSerialChanged(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
virDomainObj *vm,
|
||||
const char *devAlias,
|
||||
@ -1552,7 +1552,7 @@ qemuProcessHandleSerialChanged(qemuMonitor *mon G_GNUC_UNUSED,
|
||||
|
||||
cleanup:
|
||||
virObjectUnlock(vm);
|
||||
return 0;
|
||||
return;
|
||||
error:
|
||||
qemuProcessEventFree(processEvent);
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user