aboutsummaryrefslogtreecommitdiff
path: root/buffered_file.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-07-20 13:07:17 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:58 +0200
commitc7a8f0cdd25ed552e6dba124877bd3364054c55c (patch)
tree25dd542604104aefcdd9c4e8fd9a9720ac8f9510 /buffered_file.h
parent8e92c9e24f8c4edd7976aca82abf90e9a12667b4 (diff)
buffered_file: opaque is MigrationState
It always have that type, just change it. We will remove buffered file later on the migration thread series. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'buffered_file.h')
-rw-r--r--buffered_file.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/buffered_file.h b/buffered_file.h
index 98d358baea..39f7fa005d 100644
--- a/buffered_file.h
+++ b/buffered_file.h
@@ -15,13 +15,15 @@
#define QEMU_BUFFERED_FILE_H
#include "hw/hw.h"
+#include "migration.h"
typedef ssize_t (BufferedPutFunc)(void *opaque, const void *data, size_t size);
typedef void (BufferedPutReadyFunc)(void *opaque);
typedef void (BufferedWaitForUnfreezeFunc)(void *opaque);
typedef int (BufferedCloseFunc)(void *opaque);
-QEMUFile *qemu_fopen_ops_buffered(void *opaque, size_t xfer_limit,
+QEMUFile *qemu_fopen_ops_buffered(MigrationState *migration_state,
+ size_t xfer_limit,
BufferedPutFunc *put_buffer,
BufferedPutReadyFunc *put_ready,
BufferedWaitForUnfreezeFunc *wait_for_unfreeze,