migration: introduce new constructors for QEMUFile
commitc0c6e1e2dd26ee3ee0218d64be6c532872935070
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 20 Jun 2022 11:01:57 +0000 (20 12:01 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 22 Jun 2022 18:33:43 +0000 (22 19:33 +0100)
treee843f823d267fd607f7e465867cf7583c3bfc91c
parent2893a2884b1deb09af51f4377f1aaf29b28b0c93
migration: introduce new constructors for QEMUFile

Prepare for the elimination of QEMUFileOps by introducing a pair of new
constructors. This lets us distinguish between an input and output file
object explicitly rather than via the existance of specific callbacks.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/qemu-file-channel.c
migration/qemu-file.c
migration/qemu-file.h