summaryrefslogtreecommitdiff
path: root/toxcore/util.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-22 15:20:33 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-24 23:36:50 +0100
commitf60900c4b813abbce213db6de217837645c6590e (patch)
tree02e9223f1627f1c647b42fa3f623b7354b6c6331 /toxcore/util.h
parent15cb4261665bab4ef02a5b1b9db48b9477c9b87a (diff)
Move ring buffer out of toxcore/util into toxav.
Toxcore itself doesn't use this data structure. Only toxav does, so now toxav owns the code for it.
Diffstat (limited to 'toxcore/util.h')
-rw-r--r--toxcore/util.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/toxcore/util.h b/toxcore/util.h
index 840f0a3e..20469b75 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -58,15 +58,4 @@ int load_state(load_state_callback_func load_state_callback, void *outer,
58/* Returns -1 if failed or 0 if success */ 58/* Returns -1 if failed or 0 if success */
59int create_recursive_mutex(pthread_mutex_t *mutex); 59int create_recursive_mutex(pthread_mutex_t *mutex);
60 60
61/* Ring buffer */
62typedef struct RingBuffer RingBuffer;
63bool rb_full(const RingBuffer *b);
64bool rb_empty(const RingBuffer *b);
65void *rb_write(RingBuffer *b, void *p);
66bool rb_read(RingBuffer *b, void **p);
67RingBuffer *rb_new(int size);
68void rb_kill(RingBuffer *b);
69uint16_t rb_size(const RingBuffer *b);
70uint16_t rb_data(const RingBuffer *b, void **dest);
71
72#endif /* __UTIL_H__ */ 61#endif /* __UTIL_H__ */