diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-06-20 12:01:59 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2022-06-22 19:33:43 +0100 |
commit | d3c581b750ab099aa8937df5533655b3f9d08ab3 (patch) | |
tree | 96db98d46547314efbd62e94b216845e7c5a278f /migration/qemu-file.h | |
parent | 0f58c3fcc7e0e9eb9127d4a2019f4a31825d79e3 (diff) | |
download | qemu-d3c581b750ab099aa8937df5533655b3f9d08ab3.zip qemu-d3c581b750ab099aa8937df5533655b3f9d08ab3.tar.gz qemu-d3c581b750ab099aa8937df5533655b3f9d08ab3.tar.bz2 |
migration: remove the QEMUFileOps 'shut_down' callback
This directly implements the shutdown logic using QIOChannel APIs.
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>
Diffstat (limited to 'migration/qemu-file.h')
-rw-r--r-- | migration/qemu-file.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/migration/qemu-file.h b/migration/qemu-file.h index fe1b2d1..9fa92c1 100644 --- a/migration/qemu-file.h +++ b/migration/qemu-file.h @@ -89,22 +89,12 @@ typedef size_t (QEMURamSaveFunc)(QEMUFile *f, */ typedef QEMUFile *(QEMURetPathFunc)(void *opaque); -/* - * Stop any read or write (depending on flags) on the underlying - * transport on the QEMUFile. - * Existing blocking reads/writes must be woken - * Returns 0 on success, -err on error - */ -typedef int (QEMUFileShutdownFunc)(void *opaque, bool rd, bool wr, - Error **errp); - typedef struct QEMUFileOps { QEMUFileGetBufferFunc *get_buffer; QEMUFileCloseFunc *close; QEMUFileSetBlocking *set_blocking; QEMUFileWritevBufferFunc *writev_buffer; QEMURetPathFunc *get_return_path; - QEMUFileShutdownFunc *shut_down; } QEMUFileOps; typedef struct QEMUFileHooks { |