mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
vmstate: constify VMStateField
Because they are supposed to remain const. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20181114132931.22624-1-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
5aaac46793
commit
03fee66fde
@@ -40,8 +40,8 @@ typedef struct VMStateField VMStateField;
|
||||
*/
|
||||
struct VMStateInfo {
|
||||
const char *name;
|
||||
int (*get)(QEMUFile *f, void *pv, size_t size, VMStateField *field);
|
||||
int (*put)(QEMUFile *f, void *pv, size_t size, VMStateField *field,
|
||||
int (*get)(QEMUFile *f, void *pv, size_t size, const VMStateField *field);
|
||||
int (*put)(QEMUFile *f, void *pv, size_t size, const VMStateField *field,
|
||||
QJSON *vmdesc);
|
||||
};
|
||||
|
||||
@@ -186,7 +186,7 @@ struct VMStateDescription {
|
||||
int (*post_load)(void *opaque, int version_id);
|
||||
int (*pre_save)(void *opaque);
|
||||
bool (*needed)(void *opaque);
|
||||
VMStateField *fields;
|
||||
const VMStateField *fields;
|
||||
const VMStateDescription **subsections;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user