diff options
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h new file mode 100644 index 00000000..9749d934 --- /dev/null +++ b/src/list.h @@ -0,0 +1,20 @@ +#ifndef _PAC_LIST_H +#define _PAC_LIST_H + +/* your average linked list */ +typedef struct __pmlist_t { + void* data; + struct __pmlist_t* prev; + struct __pmlist_t* next; +} PMList; + +PMList* list_new(); +void list_free(PMList* list); +PMList* list_add(PMList* list, void* data); +int list_count(PMList* list); +PMList* list_merge(PMList *one, PMList *two); +PMList* list_last(PMList* list); + +#endif + +/* vim: set ts=2 sw=2 noet: */ |