1 #ifndef __TINC_BUFFER_H__
2 #define __TINC_BUFFER_H__
4 typedef struct buffer_t {
11 extern void buffer_compact(buffer_t *buffer, int maxsize);
12 extern char *buffer_prepare(buffer_t *buffer, int size);
13 extern void buffer_add(buffer_t *buffer, const char *data, int size);
14 extern char *buffer_readline(buffer_t *buffer);
15 extern char *buffer_read(buffer_t *buffer, int size);
16 extern void buffer_clear(buffer_t *buffer);