Merge branch 'master' into next
[paraslash.git] / ringbuffer.h
1 /* Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
2
3 /** \file ringbuffer.h Exported symbols from ringbuffer.c. */
4
5 struct ringbuffer;
6
7 struct ringbuffer *ringbuffer_new(unsigned size);
8 void *ringbuffer_add(struct ringbuffer *rb, void *data);
9 void *ringbuffer_get(struct ringbuffer *rb, int num);
10 unsigned ringbuffer_filled(struct ringbuffer *rb);