vmstate: constify SaveVMHandlers
PATCH 1/1 vmstate: constify SaveVMHandlers
Signed-off-by Marc-André Lureau <[email protected]>
--- include/migration/register.h | 2 +- migration/savevm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
include/migration/register.h +1 -1
@@ -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);
migration/savevm.c +2 -2
@@ -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;
Signature · 1 line
2.19.1.708.g4ede3d42df
Quoted 1 line · * Marc-André Lureau ([email protected]) wrote:
Signed-off-by Marc-André Lureau <[email protected]>
Reviewed-by Dr. David Alan Gilbert <[email protected]>
Quoted 43 lines
--- include/migration/register.h | 2 +- migration/savevm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)include/migration/register.h +1
-1@@ -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);migration/savevm.c +2
-2@@ -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;Signature · 1 line
2.19.1.708.g4ede3d42df
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 1 line · * Marc-André Lureau ([email protected]) wrote:
Signed-off-by Marc-André Lureau <[email protected]>
Queued
Quoted 44 lines
--- include/migration/register.h | 2 +- migration/savevm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)include/migration/register.h +1
-1@@ -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);migration/savevm.c +2
-2@@ -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;Signature · 1 line
2.19.1.708.g4ede3d42df
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK