root / buffered_file.h @ 44e4c0ba
History | View | Annotate | Download (916 Bytes)
1 | 39b65c2e | aliguori | /*
|
---|---|---|---|
2 | 39b65c2e | aliguori | * QEMU buffered QEMUFile
|
3 | 39b65c2e | aliguori | *
|
4 | 39b65c2e | aliguori | * Copyright IBM, Corp. 2008
|
5 | 39b65c2e | aliguori | *
|
6 | 39b65c2e | aliguori | * Authors:
|
7 | 39b65c2e | aliguori | * Anthony Liguori <aliguori@us.ibm.com>
|
8 | 39b65c2e | aliguori | *
|
9 | 39b65c2e | aliguori | * This work is licensed under the terms of the GNU GPL, version 2. See
|
10 | 39b65c2e | aliguori | * the COPYING file in the top-level directory.
|
11 | 39b65c2e | aliguori | *
|
12 | 39b65c2e | aliguori | */
|
13 | 39b65c2e | aliguori | |
14 | 39b65c2e | aliguori | #ifndef QEMU_BUFFERED_FILE_H
|
15 | 39b65c2e | aliguori | #define QEMU_BUFFERED_FILE_H
|
16 | 39b65c2e | aliguori | |
17 | 39b65c2e | aliguori | #include "hw/hw.h" |
18 | 39b65c2e | aliguori | |
19 | 39b65c2e | aliguori | typedef ssize_t (BufferedPutFunc)(void *opaque, const void *data, size_t size); |
20 | 39b65c2e | aliguori | typedef void (BufferedPutReadyFunc)(void *opaque); |
21 | 39b65c2e | aliguori | typedef void (BufferedWaitForUnfreezeFunc)(void *opaque); |
22 | 39b65c2e | aliguori | typedef int (BufferedCloseFunc)(void *opaque); |
23 | 39b65c2e | aliguori | |
24 | 39b65c2e | aliguori | QEMUFile *qemu_fopen_ops_buffered(void *opaque, size_t xfer_limit,
|
25 | 39b65c2e | aliguori | BufferedPutFunc *put_buffer, |
26 | 39b65c2e | aliguori | BufferedPutReadyFunc *put_ready, |
27 | 39b65c2e | aliguori | BufferedWaitForUnfreezeFunc *wait_for_unfreeze, |
28 | 39b65c2e | aliguori | BufferedCloseFunc *close); |
29 | 39b65c2e | aliguori | |
30 | 39b65c2e | aliguori | #endif |