comparison th_util.h @ 306:21528fe535fb

Don't use void pointers in the ringbuffer implementation.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jun 2011 05:36:09 +0300
parents 1807059fb8f2
children
comparison
equal deleted inserted replaced
305:6918c46015d0 306:21528fe535fb
112 112
113 113
114 /* Ringbuffer implementation 114 /* Ringbuffer implementation
115 */ 115 */
116 typedef struct { 116 typedef struct {
117 void **data; 117 char **data;
118 int n, size; 118 int n, size;
119 void (*deallocator)(void *); 119 void (*deallocator)(void *);
120 } qringbuf_t; 120 } qringbuf_t;
121 121
122 qringbuf_t * th_ringbuf_new(const size_t size, void (*mdeallocator)(void *)); 122 qringbuf_t * th_ringbuf_new(const size_t size, void (*mdeallocator)(void *));