Mercurial > hg > th-libs
changeset 53:2c90b33d3617
Add th_llist_append_node() and th_llist_prepend_node() to public header.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 01:04:12 +0300 |
parents | 2a452b142301 |
children | 48926b3ff598 |
files | th_util.c th_util.h |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/th_util.c Sun Oct 09 23:03:40 2011 +0300 +++ b/th_util.c Sat May 26 01:04:12 2012 +0300 @@ -196,6 +196,7 @@ th_llist_free_func(list, NULL); } + void th_llist_append_node(qlist_t **list, qlist_t *node) { if (*list != NULL)
--- a/th_util.h Sun Oct 09 23:03:40 2011 +0300 +++ b/th_util.h Sat May 26 01:04:12 2012 +0300 @@ -104,7 +104,9 @@ void th_llist_free(qlist_t *list); void th_llist_free_func(qlist_t *list, void (*freefunc)(void *data)); +void th_llist_append_node(qlist_t **list, qlist_t *node); qlist_t * th_llist_append(qlist_t **list, void *data); +void th_llist_prepend_node(qlist_t **list, qlist_t *node); qlist_t * th_llist_prepend(qlist_t **list, void *data); void th_llist_delete(qlist_t **list, const void *data); void th_llist_delete_node(qlist_t **list, qlist_t *node);