summaryrefslogtreecommitdiff
path: root/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'list.h')
-rw-r--r--list.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/list.h b/list.h
index 876d345..c89f902 100644
--- a/list.h
+++ b/list.h
@@ -14,7 +14,10 @@ struct list *list_create();
void list_destroy(struct list *list);
/* appends entry to list; returns 1 if ok, 0 if malloc fails */
-int list_add(struct list *list, void *data);
+int list_push(struct list *list, void *data);
+
+/* removes first entry from list and returns data */
+void *list_shift(struct list *list);
/* returns first node */
struct list_node *list_first(struct list *list);