aboutsummaryrefslogtreecommitdiff
path: root/include/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-05 18:10:36 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-10 14:51:48 +0100
commita800cd5c38ba4ac20fe9ca68a6dee408f2d5b11f (patch)
treeb11e567f4168669fe033e672b9b00854dd654497 /include/migration
parent9504fb510c87c3dd6fe2e9a25e84c1426672f226 (diff)
downloadqemu-a800cd5c38ba4ac20fe9ca68a6dee408f2d5b11f.zip
qemu-a800cd5c38ba4ac20fe9ca68a6dee408f2d5b11f.tar.gz
qemu-a800cd5c38ba4ac20fe9ca68a6dee408f2d5b11f.tar.bz2
Add wrapper for setting blocking status on a QEMUFile
Add a wrapper to change the blocking status on a QEMUFile rather than having to use qemu_set_block(qemu_get_fd(f)); it seems best to avoid exposing the fd since not all QEMUFile's really have one. With this wrapper we could move the implementation down to be different on different transports. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r--include/migration/qemu-file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h
index 86bb972..66e741f 100644
--- a/include/migration/qemu-file.h
+++ b/include/migration/qemu-file.h
@@ -197,6 +197,7 @@ int qemu_file_get_error(QEMUFile *f);
void qemu_file_set_error(QEMUFile *f, int ret);
int qemu_file_shutdown(QEMUFile *f);
void qemu_fflush(QEMUFile *f);
+void qemu_file_set_blocking(QEMUFile *f, bool block);
static inline void qemu_put_be64s(QEMUFile *f, const uint64_t *pv)
{