server: Convert com_mvatt() to lopsub.
[paraslash.git] / ringbuffer.h
1 /*
2 * Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file ringbuffer.h Exported symbols from ringbuffer.c. */
8
9 struct ringbuffer;
10
11 struct ringbuffer *ringbuffer_new(unsigned size);
12 void *ringbuffer_add(struct ringbuffer *rb, void *data);
13 void *ringbuffer_get(struct ringbuffer *rb, int num);
14 unsigned ringbuffer_filled(struct ringbuffer *rb);