aboutsummaryrefslogtreecommitdiff
path: root/vmstate.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-06-26 17:19:10 +0200
committerJuan Quintela <quintela@redhat.com>2012-07-20 08:19:27 +0200
commit22ea40f4ff072a113fdf96bff10bc81ee063da32 (patch)
tree86d186e6d21925dba1851f3d5784718d76898b91 /vmstate.h
parent61dc008f3529fa74a63aad1907438dad857e255a (diff)
savevm: Use a struct to pass all handlers
This would make easier to add more operations in the next patches. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'vmstate.h')
-rw-r--r--vmstate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vmstate.h b/vmstate.h
index 5af45e0c12..909af6934d 100644
--- a/vmstate.h
+++ b/vmstate.h
@@ -31,6 +31,13 @@ typedef void SaveStateHandler(QEMUFile *f, void *opaque);
typedef int SaveLiveStateHandler(QEMUFile *f, int stage, void *opaque);
typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
+typedef struct SaveVMHandlers {
+ SaveSetParamsHandler *set_params;
+ SaveStateHandler *save_state;
+ SaveLiveStateHandler *save_live_state;
+ LoadStateHandler *load_state;
+} SaveVMHandlers;
+
int register_savevm(DeviceState *dev,
const char *idstr,
int instance_id,