2 * QEMU buffered QEMUFile
4 * Copyright IBM, Corp. 2008
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #ifndef QEMU_BUFFERED_FILE_H
15 #define QEMU_BUFFERED_FILE_H
18 #include "migration.h"
20 typedef ssize_t (BufferedPutFunc
)(void *opaque
, const void *data
, size_t size
);
21 typedef void (BufferedPutReadyFunc
)(void *opaque
);
22 typedef void (BufferedWaitForUnfreezeFunc
)(void *opaque
);
23 typedef int (BufferedCloseFunc
)(void *opaque
);
25 QEMUFile
*qemu_fopen_ops_buffered(MigrationState
*migration_state
,
27 BufferedPutFunc
*put_buffer
,
28 BufferedPutReadyFunc
*put_ready
,
29 BufferedWaitForUnfreezeFunc
*wait_for_unfreeze
,
30 BufferedCloseFunc
*close
);