Revision c8cafc8e lib/buffer.h

View differences:

lib/buffer.h
1
/*
2
 *	BIRD Library -- Generic Buffer Structure
3
 *
4
 *	(c) 2013 Ondrej Zajicek <santiago@crfreenet.org>
5
 *	(c) 2013 CZ.NIC z.s.p.o.
6
 *
7
 *	Can be freely distributed and used under the terms of the GNU GPL.
8
 */
9

  
10
#ifndef _BIRD_BUFFER_H_
11
#define _BIRD_BUFFER_H_
12

  
13
#include "lib/resource.h"
14
#include "sysdep/config.h"
1 15

  
2 16
#define BUFFER(type)		struct { type *data; uint used, size; }
3 17

  
......
32 46

  
33 47
#define BUFFER_FLUSH(v)		({ (v).used = 0; })
34 48

  
35

  
49
#endif /* _BIRD_BUFFER_H_ */

Also available in: Unified diff