diff options
author | Juan Quintela <quintela@redhat.com> | 2012-07-20 13:07:17 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-10-17 18:34:58 +0200 |
commit | c7a8f0cdd25ed552e6dba124877bd3364054c55c (patch) | |
tree | 25dd542604104aefcdd9c4e8fd9a9720ac8f9510 /buffered_file.c | |
parent | 8e92c9e24f8c4edd7976aca82abf90e9a12667b4 (diff) | |
download | qemu-c7a8f0cdd25ed552e6dba124877bd3364054c55c.zip qemu-c7a8f0cdd25ed552e6dba124877bd3364054c55c.tar.gz qemu-c7a8f0cdd25ed552e6dba124877bd3364054c55c.tar.bz2 |
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.c')
-rw-r--r-- | buffered_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buffered_file.c b/buffered_file.c index 33b700b..59d952d 100644 --- a/buffered_file.c +++ b/buffered_file.c @@ -27,7 +27,7 @@ typedef struct QEMUFileBuffered BufferedPutReadyFunc *put_ready; BufferedWaitForUnfreezeFunc *wait_for_unfreeze; BufferedCloseFunc *close; - void *migration_state; + MigrationState *migration_state; QEMUFile *file; int freeze_output; size_t bytes_xfer; @@ -226,7 +226,7 @@ static void buffered_rate_tick(void *opaque) buffered_put_buffer(s, NULL, 0, 0); } -QEMUFile *qemu_fopen_ops_buffered(void *opaque, +QEMUFile *qemu_fopen_ops_buffered(MigrationState *migration_state, size_t bytes_per_sec, BufferedPutFunc *put_buffer, BufferedPutReadyFunc *put_ready, @@ -237,7 +237,7 @@ QEMUFile *qemu_fopen_ops_buffered(void *opaque, s = g_malloc0(sizeof(*s)); - s->migration_state = opaque; + s->migration_state = migration_state; s->xfer_limit = bytes_per_sec / 10; s->put_buffer = put_buffer; s->put_ready = put_ready; |