]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove return value from qemuMonitorDomainPMSuspendCallback
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 94aedbe7506cec93fc42794986c702bbf30a38ed..e7a9dd2e43ed22f475f951e00cfc5d35006a3404 100644 (file)
@@ -224,9 +224,9 @@ typedef void (*qemuMonitorDomainTrayChangeCallback)(qemuMonitor *mon,
 typedef void (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
                                                   virDomainObj *vm,
                                                   void *opaque);
-typedef int (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
-                                                  virDomainObj *vm,
-                                                  void *opaque);
+typedef void (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
+                                                   virDomainObj *vm,
+                                                   void *opaque);
 typedef int (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
                                                       virDomainObj *vm,
                                                       unsigned long long actual,
index 138a45ea1054f9cb0b8c0d5c530bc287e040d0ea..8b828506372f927be25f447e0ed2fb7e42b154fe 100644 (file)
@@ -1162,7 +1162,7 @@ qemuProcessHandlePMWakeup(qemuMonitor *mon G_GNUC_UNUSED,
     virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
 }
 
-static int
+static void
 qemuProcessHandlePMSuspend(qemuMonitor *mon G_GNUC_UNUSED,
                            virDomainObj *vm,
                            void *opaque)
@@ -1200,7 +1200,6 @@ qemuProcessHandlePMSuspend(qemuMonitor *mon G_GNUC_UNUSED,
 
     virObjectEventStateQueue(driver->domainEventState, event);
     virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
-    return 0;
 }
 
 static int