diff options
Diffstat (limited to 'list.h')
-rw-r--r-- | list.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,10 +1,16 @@ #pragma once -#define LINKEDLIST void *prev, *next +#define LINKEDLIST void *prev, *next, *listhead struct list { void *tail, *head, *end; }; extern void list_init(struct list *list); +extern int list_empty(struct list *list); +extern int list_singleton(struct list *list); + +extern void *list_circular_prev(void *_node); +extern void *list_circular_next(void *_node); + extern void list_insert(void *_next, void *_node); extern void list_remove(void *_node); |