|
@@ -27,6 +27,7 @@
|
|
|
|
|
|
#include <zlib.h>
|
|
#include <zlib.h>
|
|
#include "exec/cpu-common.h"
|
|
#include "exec/cpu-common.h"
|
|
|
|
+#include "io/channel.h"
|
|
|
|
|
|
/* Read a chunk of data from a file at the given position. The pos argument
|
|
/* Read a chunk of data from a file at the given position. The pos argument
|
|
* can be ignored if the file is only be used for streaming. The number of
|
|
* can be ignored if the file is only be used for streaming. The number of
|
|
@@ -119,7 +120,7 @@ typedef struct QEMUFileHooks {
|
|
QEMURamSaveFunc *save_page;
|
|
QEMURamSaveFunc *save_page;
|
|
} QEMUFileHooks;
|
|
} QEMUFileHooks;
|
|
|
|
|
|
-QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops);
|
|
|
|
|
|
+QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops, bool has_ioc);
|
|
void qemu_file_set_hooks(QEMUFile *f, const QEMUFileHooks *hooks);
|
|
void qemu_file_set_hooks(QEMUFile *f, const QEMUFileHooks *hooks);
|
|
int qemu_get_fd(QEMUFile *f);
|
|
int qemu_get_fd(QEMUFile *f);
|
|
int qemu_fclose(QEMUFile *f);
|
|
int qemu_fclose(QEMUFile *f);
|
|
@@ -179,5 +180,6 @@ void ram_control_load_hook(QEMUFile *f, uint64_t flags, void *data);
|
|
size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset,
|
|
size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset,
|
|
ram_addr_t offset, size_t size,
|
|
ram_addr_t offset, size_t size,
|
|
uint64_t *bytes_sent);
|
|
uint64_t *bytes_sent);
|
|
|
|
+QIOChannel *qemu_file_get_ioc(QEMUFile *file);
|
|
|
|
|
|
#endif
|
|
#endif
|