diff options
Diffstat (limited to 'libc/inc/list.h')
-rw-r--r-- | libc/inc/list.h | 5 |
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 |