]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vmstate: constify SaveVMHandlers
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 14 Nov 2018 13:31:39 +0000 (17:31 +0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 23 Jan 2019 15:51:47 +0000 (15:51 +0000)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181114133139.27346-1-marcandre.lureau@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/migration/register.h
migration/savevm.c

index d287f4c31722fe15c5a56c979fa8cd350fd1898a..3d0b9833c6fd7c07b46c82c861fd4d9985ada9b3 100644 (file)
@@ -72,7 +72,7 @@ int register_savevm_live(DeviceState *dev,
                          const char *idstr,
                          int instance_id,
                          int version_id,
-                         SaveVMHandlers *ops,
+                         const SaveVMHandlers *ops,
                          void *opaque);
 
 void unregister_savevm(DeviceState *dev, const char *idstr, void *opaque);
index d784e8aa400637cc48167d2b8a6f6de10dda2870..322660438df51fe35f1ab1ee3c4f35b1f7238ba7 100644 (file)
@@ -303,7 +303,7 @@ typedef struct SaveStateEntry {
     int section_id;
     /* section id read from the stream */
     int load_section_id;
-    SaveVMHandlers *ops;
+    const SaveVMHandlers *ops;
     const VMStateDescription *vmsd;
     void *opaque;
     CompatEntry *compat;
@@ -614,7 +614,7 @@ int register_savevm_live(DeviceState *dev,
                          const char *idstr,
                          int instance_id,
                          int version_id,
-                         SaveVMHandlers *ops,
+                         const SaveVMHandlers *ops,
                          void *opaque)
 {
     SaveStateEntry *se;