# HG changeset patch # User Matti Hamalainen # Date 1337983452 -10800 # Node ID 2c90b33d3617f6e907a170277006a4cf9d8562a8 # Parent 2a452b14230144cb87ad43c916b9bfe4cb2f9d36 Add th_llist_append_node() and th_llist_prepend_node() to public header. diff -r 2a452b142301 -r 2c90b33d3617 th_util.c --- 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) diff -r 2a452b142301 -r 2c90b33d3617 th_util.h --- 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);