mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
migration: remove the QEMUFileOps 'set_blocking' callback
This directly implements the set_blocking 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>
This commit is contained in:
parent
d3c581b750
commit
80ad97069c
3 changed files with 1 additions and 22 deletions
|
@ -879,9 +879,7 @@ void qemu_put_counted_string(QEMUFile *f, const char *str)
|
|||
*/
|
||||
void qemu_file_set_blocking(QEMUFile *f, bool block)
|
||||
{
|
||||
if (f->ops->set_blocking) {
|
||||
f->ops->set_blocking(f->ioc, block, NULL);
|
||||
}
|
||||
qio_channel_set_blocking(f->ioc, block, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue