diff options
author | Rob Landley <rob@landley.net> | 2014-05-21 06:57:43 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-05-21 06:57:43 -0500 |
commit | e604d5344466df8584c48c8492397fcffa63a671 (patch) | |
tree | 1b351501cdee96cb897d884d5d2dff5a308ee225 /lib/lib.h | |
parent | 95d2ce84789011970e2f814b2fb6c819084bde8c (diff) | |
download | toybox-e604d5344466df8584c48c8492397fcffa63a671.tar.gz |
Add free functions for predefined llist types.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -24,7 +24,9 @@ struct double_list { char *data; }; -void llist_traverse(void *list, void (*using)(void *data)); +void llist_free_arg(void *node); +void llist_free_double(void *node); +void llist_traverse(void *list, void (*using)(void *node)); void *llist_pop(void *list); // actually void **list void *dlist_pop(void *list); // actually struct double_list **list void dlist_add_nomalloc(struct double_list **list, struct double_list *new); |