diff options
-rw-r--r-- | include/migration/qemu-file.h | 1 | ||||
-rw-r--r-- | qemu-file.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h index 70ff347f2e..401676bf4d 100644 --- a/include/migration/qemu-file.h +++ b/include/migration/qemu-file.h @@ -120,6 +120,7 @@ void qemu_put_byte(QEMUFile *f, int v); */ void qemu_put_buffer_async(QEMUFile *f, const uint8_t *buf, int size); bool qemu_file_mode_is_not_valid(const char *mode); +bool qemu_file_is_writable(QEMUFile *f); QEMUSizedBuffer *qsb_create(const uint8_t *buffer, size_t len); QEMUSizedBuffer *qsb_clone(const QEMUSizedBuffer *); diff --git a/qemu-file.c b/qemu-file.c index a5bbe7ebb0..c303b61373 100644 --- a/qemu-file.c +++ b/qemu-file.c @@ -456,7 +456,7 @@ void qemu_file_set_error(QEMUFile *f, int ret) } } -static inline bool qemu_file_is_writable(QEMUFile *f) +bool qemu_file_is_writable(QEMUFile *f) { return f->ops->writev_buffer || f->ops->put_buffer; } |