mirror of https://github.com/proxmox/mirror_qemu
migration: Fix compilation with older compilers
That typedefs are needed on both files. New compilers (F25 where I work) don't complain about repeating a typedef. But older ones complain. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org>master
parent
3f0602927b
commit
68a4a2fda1
|
@ -14,9 +14,6 @@
|
||||||
#ifndef MIGRATION_REGISTER_H
|
#ifndef MIGRATION_REGISTER_H
|
||||||
#define MIGRATION_REGISTER_H
|
#define MIGRATION_REGISTER_H
|
||||||
|
|
||||||
typedef void SaveStateHandler(QEMUFile *f, void *opaque);
|
|
||||||
typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
|
|
||||||
|
|
||||||
typedef struct SaveVMHandlers {
|
typedef struct SaveVMHandlers {
|
||||||
/* This runs inside the iothread lock. */
|
/* This runs inside the iothread lock. */
|
||||||
SaveStateHandler *save_state;
|
SaveStateHandler *save_state;
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
#include "migration/qjson.h"
|
#include "migration/qjson.h"
|
||||||
|
|
||||||
typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
|
|
||||||
typedef struct VMStateInfo VMStateInfo;
|
typedef struct VMStateInfo VMStateInfo;
|
||||||
typedef struct VMStateDescription VMStateDescription;
|
typedef struct VMStateDescription VMStateDescription;
|
||||||
typedef struct VMStateField VMStateField;
|
typedef struct VMStateField VMStateField;
|
||||||
|
|
|
@ -96,5 +96,7 @@ typedef struct uWireSlave uWireSlave;
|
||||||
typedef struct VirtIODevice VirtIODevice;
|
typedef struct VirtIODevice VirtIODevice;
|
||||||
typedef struct Visitor Visitor;
|
typedef struct Visitor Visitor;
|
||||||
typedef struct node_info NodeInfo;
|
typedef struct node_info NodeInfo;
|
||||||
|
typedef void SaveStateHandler(QEMUFile *f, void *opaque);
|
||||||
|
typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
|
||||||
|
|
||||||
#endif /* QEMU_TYPEDEFS_H */
|
#endif /* QEMU_TYPEDEFS_H */
|
||||||
|
|
Loading…
Reference in New Issue