[PATCH 03/33] qemu: Remove return value from qemuMonitorDomainEventCallback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change the callback prototype and fix the callback registered in the
process code.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_monitor.h | 14 +++++++-------
 src/qemu/qemu_process.c |  4 +---
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
index 2fa5151652..d20b2e89d1 100644
--- a/src/qemu/qemu_monitor.h
+++ b/src/qemu/qemu_monitor.h
@@ -155,13 +155,13 @@ typedef void (*qemuMonitorEofNotifyCallback)(qemuMonitor *mon,
 typedef void (*qemuMonitorErrorNotifyCallback)(qemuMonitor *mon,
                                                virDomainObj *vm,
                                                void *opaque);
-typedef int (*qemuMonitorDomainEventCallback)(qemuMonitor *mon,
-                                              virDomainObj *vm,
-                                              const char *event,
-                                              long long seconds,
-                                              unsigned int micros,
-                                              const char *details,
-                                              void *opaque);
+typedef void (*qemuMonitorDomainEventCallback)(qemuMonitor *mon,
+                                               virDomainObj *vm,
+                                               const char *event,
+                                               long long seconds,
+                                               unsigned int micros,
+                                               const char *details,
+                                               void *opaque);
 typedef int (*qemuMonitorDomainShutdownCallback)(qemuMonitor *mon,
                                                  virDomainObj *vm,
                                                  virTristateBool guest,
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 914f936e45..6b9658f5ac 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -546,7 +546,7 @@ qemuProcessShutdownOrReboot(virQEMUDriver *driver,
 }


-static int
+static void
 qemuProcessHandleEvent(qemuMonitor *mon G_GNUC_UNUSED,
                        virDomainObj *vm,
                        const char *eventName,
@@ -567,8 +567,6 @@ qemuProcessHandleEvent(qemuMonitor *mon G_GNUC_UNUSED,

     virObjectUnlock(vm);
     virObjectEventStateQueue(driver->domainEventState, event);
-
-    return 0;
 }


-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux