blob: 22d8e8e8e20480a2273423442bd50cf5785f3c49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef _IPXE_XFERBUF_H
#define _IPXE_XFERBUF_H
/** @file
*
* Data transfer buffer
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <ipxe/iobuf.h>
#include <ipxe/xfer.h>
/** A data transfer buffer */
struct xfer_buffer {
/** Data */
void *data;
/** Size of data */
size_t len;
/** Current offset within data */
size_t pos;
};
extern void xferbuf_done ( struct xfer_buffer *xferbuf );
extern int xferbuf_deliver ( struct xfer_buffer *xferbuf,
struct io_buffer *iobuf,
struct xfer_metadata *meta );
#endif /* _IPXE_XFERBUF_H */
|