summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorMichael R. Hines <mrhines@us.ibm.com>2013-06-25 21:35:31 -0400
committerJuan Quintela <quintela@redhat.com>2013-06-27 02:38:36 +0200
commitbc1256f7f187cc7d491bfe3861249a60873adbbc (patch)
tree82014c8daa9756d65c5deb725d37f25962770d80 /include/migration
parent7e114f8cf24a01893226e3a4d22a288125515cfd (diff)
downloadhqemu-bc1256f7f187cc7d491bfe3861249a60873adbbc.zip
hqemu-bc1256f7f187cc7d491bfe3861249a60873adbbc.tar.gz
rdma: introduce qemu_file_mode_is_not_valid()
QEMUFileRDMA also has read and write modes. This function is now shared to reduce code duplication. Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Chegu Vinod <chegu_vinod@hp.com> Tested-by: Chegu Vinod <chegu_vinod@hp.com> Tested-by: Michael R. Hines <mrhines@us.ibm.com> Signed-off-by: Michael R. Hines <mrhines@us.ibm.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 8fab0dd..dd3fd51 100644
--- a/include/migration/qemu-file.h
+++ b/include/migration/qemu-file.h
@@ -80,6 +80,7 @@ void qemu_put_byte(QEMUFile *f, int v);
* The buffer should be available till it is sent asynchronously.
*/
void qemu_put_buffer_async(QEMUFile *f, const uint8_t *buf, int size);
+bool qemu_file_mode_is_not_valid(const char *mode);
static inline void qemu_put_ubyte(QEMUFile *f, unsigned int v)
{
OpenPOWER on IntegriCloud