diff options
author | Cédric Le Goater <clg@redhat.com> | 2024-03-04 13:28:25 +0100 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-03-11 14:41:40 -0400 |
commit | f61efdee1ef96445af7db832a0170d137fbdb31c (patch) | |
tree | 9226f31e2ff992c37720925d2a0c59fef023f3c8 /include | |
parent | e8c44363fbf25c2601fa2fbf3ec0d6d37c5f1a02 (diff) | |
download | qemu-f61efdee1ef96445af7db832a0170d137fbdb31c.zip qemu-f61efdee1ef96445af7db832a0170d137fbdb31c.tar.gz qemu-f61efdee1ef96445af7db832a0170d137fbdb31c.tar.bz2 |
migration: Remove SaveStateHandler and LoadStateHandler typedefs
They are only used once.
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20240304122844.1888308-8-clg@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/register.h | 4 | ||||
-rw-r--r-- | include/qemu/typedefs.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/migration/register.h b/include/migration/register.h index 9ab1f79..2e6a7d7 100644 --- a/include/migration/register.h +++ b/include/migration/register.h @@ -18,7 +18,7 @@ typedef struct SaveVMHandlers { /* This runs inside the BQL. */ - SaveStateHandler *save_state; + void (*save_state)(QEMUFile *f, void *opaque); /* * save_prepare is called early, even before migration starts, and can be @@ -71,7 +71,7 @@ typedef struct SaveVMHandlers { /* This calculate the exact remaining data to transfer */ void (*state_pending_exact)(void *opaque, uint64_t *must_precopy, uint64_t *can_postcopy); - LoadStateHandler *load_state; + int (*load_state)(QEMUFile *f, void *opaque, int version_id); int (*load_setup)(QEMUFile *f, void *opaque); int (*load_cleanup)(void *opaque); /* Called when postcopy migration wants to resume from failure */ diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index a028dba..50c277c 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -151,8 +151,6 @@ typedef struct IRQState *qemu_irq; /* * Function types */ -typedef void SaveStateHandler(QEMUFile *f, void *opaque); -typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id); typedef void (*qemu_irq_handler)(void *opaque, int n, int level); #endif /* QEMU_TYPEDEFS_H */ |