mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
migration: remove the QEMUFileOps abstraction
Now that all QEMUFile callbacks are removed, the entire concept can be deleted. 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
02bdbe172d
commit
77ef2dc1c8
12 changed files with 27 additions and 128 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "migration/vmstate.h"
|
||||
#include "migration/qemu-file-types.h"
|
||||
#include "../migration/qemu-file.h"
|
||||
#include "../migration/qemu-file-channel.h"
|
||||
#include "../migration/savevm.h"
|
||||
#include "qemu/coroutine.h"
|
||||
#include "qemu/module.h"
|
||||
|
@ -52,9 +51,9 @@ static QEMUFile *open_test_file(bool write)
|
|||
}
|
||||
ioc = QIO_CHANNEL(qio_channel_file_new_fd(fd));
|
||||
if (write) {
|
||||
f = qemu_fopen_channel_output(ioc);
|
||||
f = qemu_file_new_output(ioc);
|
||||
} else {
|
||||
f = qemu_fopen_channel_input(ioc);
|
||||
f = qemu_file_new_input(ioc);
|
||||
}
|
||||
object_unref(OBJECT(ioc));
|
||||
return f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue