diff options
author | Juan Quintela <quintela@redhat.com> | 2012-06-26 17:19:10 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-07-20 08:19:27 +0200 |
commit | 22ea40f4ff072a113fdf96bff10bc81ee063da32 (patch) | |
tree | 86d186e6d21925dba1851f3d5784718d76898b91 /vmstate.h | |
parent | 61dc008f3529fa74a63aad1907438dad857e255a (diff) | |
download | qemu-22ea40f4ff072a113fdf96bff10bc81ee063da32.zip qemu-22ea40f4ff072a113fdf96bff10bc81ee063da32.tar.gz qemu-22ea40f4ff072a113fdf96bff10bc81ee063da32.tar.bz2 |
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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, |