From f60900c4b813abbce213db6de217837645c6590e Mon Sep 17 00:00:00 2001 From: iphydf Date: Thu, 22 Sep 2016 15:20:33 +0100 Subject: 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. --- toxcore/util.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'toxcore/util.h') 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, /* Returns -1 if failed or 0 if success */ int create_recursive_mutex(pthread_mutex_t *mutex); -/* Ring buffer */ -typedef struct RingBuffer RingBuffer; -bool rb_full(const RingBuffer *b); -bool rb_empty(const RingBuffer *b); -void *rb_write(RingBuffer *b, void *p); -bool rb_read(RingBuffer *b, void **p); -RingBuffer *rb_new(int size); -void rb_kill(RingBuffer *b); -uint16_t rb_size(const RingBuffer *b); -uint16_t rb_data(const RingBuffer *b, void **dest); - #endif /* __UTIL_H__ */ -- cgit v1.2.3