summaryrefslogtreecommitdiff
path: root/lichen.h
diff options
context:
space:
mode:
Diffstat (limited to 'lichen.h')
-rw-r--r--lichen.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lichen.h b/lichen.h
index b30c8cb..a607d24 100644
--- a/lichen.h
+++ b/lichen.h
@@ -41,9 +41,18 @@ typedef struct li_ll_t {
int tag;
size_t count;
li_llnode_t *head;
+ li_llnode_t *end;
} li_ll_t;
+// allocate a linked list
+struct li_ll_t * li_alloc_ll();
+// free a linked list
+void li_free_ll(struct li_ll_t *list, void (*free_data)(void*));
+void li_ll_append(struct li_ll_t *list, void *data);
+struct li_ll_t * li_copy_list(struct li_ll_t *list);
+
+
#endif