projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 't/buffer_tree_improvements'
[paraslash.git]
/
ringbuffer.h
diff --git
a/ringbuffer.h
b/ringbuffer.h
index 20724b17e073c6f78bb29c6c610c786519c2b0b5..ce89d4b792db234ea8bba7dc04f04ce1076cf08e 100644
(file)
--- a/
ringbuffer.h
+++ b/
ringbuffer.h
@@
-1,12
+1,14
@@
/*
/*
- * Copyright (C) 2006-20
08
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-20
13
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file ringbuffer.h Exported symbols from ringbuffer.c. */
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file ringbuffer.h Exported symbols from ringbuffer.c. */
-void *ringbuffer_new(unsigned size);
-void *ringbuffer_add(void *cookie, void *data);
-void *ringbuffer_get(void *cookie, int num);
-unsigned ringbuffer_filled(void *cookie);
+struct ringbuffer;
+
+struct ringbuffer *ringbuffer_new(unsigned size);
+void *ringbuffer_add(struct ringbuffer *rb, void *data);
+void *ringbuffer_get(struct ringbuffer *rb, int num);
+unsigned ringbuffer_filled(struct ringbuffer *rb);