comparison th_util.h @ 157:e96c900ca6f1

Rename qringbuf_t to th_ringbuf_t.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Feb 2015 01:37:58 +0200
parents f9254c34ad05
children a765a51cbd5c
comparison
equal deleted inserted replaced
156:f9254c34ad05 157:e96c900ca6f1
181 typedef struct 181 typedef struct
182 { 182 {
183 char **data; 183 char **data;
184 int n, size; 184 int n, size;
185 void (*deallocator)(void *); 185 void (*deallocator)(void *);
186 } qringbuf_t; 186 } th_ringbuf_t;
187 187
188 qringbuf_t * th_ringbuf_new(const size_t size, void (*mdeallocator)(void *)); 188 th_ringbuf_t * th_ringbuf_new(const size_t size, void (*mdeallocator)(void *));
189 BOOL th_ringbuf_grow(qringbuf_t *buf, const size_t n); 189 BOOL th_ringbuf_grow(th_ringbuf_t *buf, const size_t n);
190 void th_ringbuf_free(qringbuf_t *buf); 190 void th_ringbuf_free(th_ringbuf_t *buf);
191 void th_ringbuf_add(qringbuf_t *buf, void *ptr); 191 void th_ringbuf_add(th_ringbuf_t *buf, void *ptr);
192 192
193 193
194 /* Growing buffers 194 /* Growing buffers
195 */ 195 */
196 #define TH_BUFGROW (32) 196 #define TH_BUFGROW (32)