qemu-file: Make qemu_file_is_writable() non-static
The QEMUFileStdio code will use qemu_file_is_writable() and will be moved to a separate file. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
9a4ac51f72
commit
e68dd36596
@ -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 *);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user