Mercurial > hg > th-libs
diff th_util.h @ 156:f9254c34ad05
Add new utility function for linked lists, th_llist_free_func_node().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 07 Feb 2015 01:37:11 +0200 |
parents | b4e1b15a64e1 |
children | e96c900ca6f1 |
line wrap: on
line diff
--- a/th_util.h Sat Feb 07 00:19:43 2015 +0200 +++ b/th_util.h Sat Feb 07 01:37:11 2015 +0200 @@ -155,6 +155,7 @@ th_llist_t * th_llist_new(void *data); void th_llist_free(th_llist_t *list); void th_llist_free_func(th_llist_t *list, void (*freefunc)(void *data)); +void th_llist_free_func_node(th_llist_t *list, void (*freefunc)(th_llist_t *node)); void th_llist_append_node(th_llist_t **list, th_llist_t *node); th_llist_t * th_llist_append(th_llist_t **list, void *data);