2 * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
4 * Licensed under the GPL v2. For licencing details see COPYING.
7 /** \file ringbuffer.h Exported symbols from ringbuffer.c. */
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);