]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove return value from qemuMonitorDomainPMWakeupCallback
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jul 2021 08:05:06 +0000 (10:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 23 Jul 2021 08:01:47 +0000 (10:01 +0200)
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>
src/qemu/qemu_monitor.h
src/qemu/qemu_process.c

index a7718ebb474aa8df23ef7f8f25701cd571c8d1c0..94aedbe7506cec93fc42794986c702bbf30a38ed 100644 (file)
@@ -221,9 +221,9 @@ typedef void (*qemuMonitorDomainTrayChangeCallback)(qemuMonitor *mon,
                                                     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);
index 3a6c12e7a41039353448fa781121a35761d84aaa..138a45ea1054f9cb0b8c0d5c530bc287e040d0ea 100644 (file)
@@ -1125,7 +1125,7 @@ qemuProcessHandleTrayChange(qemuMonitor *mon G_GNUC_UNUSED,
     virObjectEventStateQueue(driver->domainEventState, event);
 }
 
-static int
+static void
 qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
                           virDomainObj *vm,
                           void *opaque)
@@ -1160,7 +1160,6 @@ qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
     virObjectUnlock(vm);
     virObjectEventStateQueue(driver->domainEventState, event);
     virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
-    return 0;
 }
 
 static int