From d6fdf16520b6f242935ca95eeb739ec9a8eaa14c Mon Sep 17 00:00:00 2001 From: Eniz Vukovic Date: Sat, 10 Oct 2015 23:54:23 +0200 Subject: New Adaptive BR algorithm, cleanups and fixes --- toxcore/util.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'toxcore/util.h') diff --git a/toxcore/util.h b/toxcore/util.h index 7670a80f..7cf63178 100644 --- a/toxcore/util.h +++ b/toxcore/util.h @@ -64,7 +64,9 @@ 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); -void rb_clear(RingBuffer *b); RingBuffer *rb_new(int size); -void rb_free(RingBuffer *b); +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