source: grub-pc/trunk/fuentes/debian/grub-extras/disabled/gpxe/src/include/gpxe/linebuf.h @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 631 bytes
Line 
1#ifndef _GPXE_LINEBUF_H
2#define _GPXE_LINEBUF_H
3
4/** @file
5 *
6 * Line buffering
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER );
11
12#include <stdint.h>
13#include <stddef.h>
14
15/** A line buffer */
16struct line_buffer {
17        /** Current string in the buffer */
18        char *data;
19        /** Length of current string, excluding the terminating NUL */
20        size_t len;
21        /** String is ready to read */
22        int ready;
23};
24
25extern char * buffered_line ( struct line_buffer *linebuf );
26extern ssize_t line_buffer ( struct line_buffer *linebuf,
27                             const char *data, size_t len );
28extern void empty_line_buffer ( struct line_buffer *linebuf );
29
30#endif /* _GPXE_LINEBUF_H */
Note: See TracBrowser for help on using the repository browser.