aboutsummaryrefslogtreecommitdiff
path: root/libc/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-09-15 18:30:27 +0200
committerMarvin Borner2020-09-15 18:30:27 +0200
commit185af2c969c5d90ebcf7948e3b9fd8695b78256f (patch)
tree37d85ba770f7cda7eac14c417635b33e9bdff010 /libc/inc
parent66586840d83916721745a40d32a4a5fcfc5aaecf (diff)
Added some list functions
Diffstat (limited to 'libc/inc')
-rw-r--r--libc/inc/list.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/inc/list.h b/libc/inc/list.h
index 0a5c6c0..0c3668d 100644
--- a/libc/inc/list.h
+++ b/libc/inc/list.h
@@ -20,6 +20,9 @@ struct list *list_new();
/* struct node *list_new_node(); */ // TODO: Make node-specific things static/private?
/* void list_add_node(struct list *list, struct node *node); */
struct node *list_add(struct list *list, void *data);
-void list_remove(struct list *list, struct node *node);
+struct list *list_remove(struct list *list, struct node *node);
+struct node *list_last(struct list *list);
+struct list *list_swap(struct list *list, struct node *a, struct node *b);
+struct node *list_first_data(struct list *list, void *data);
#endif