From 7f8ebb7d0dcb687574554b877a0e84f48718df37 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 16 Aug 2015 11:02:56 -0400 Subject: Move headers to include/ --- include/list.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/list.h (limited to 'include/list.h') diff --git a/include/list.h b/include/list.h new file mode 100644 index 00000000..29b988aa --- /dev/null +++ b/include/list.h @@ -0,0 +1,17 @@ +#ifndef _SWAY_LIST_H +#define _SWAY_LIST_H + +typedef struct { + int capacity; + int length; + void **items; +} list_t; + +list_t *create_list(void); +void list_free(list_t *list); +void list_add(list_t *list, void *item); +void list_insert(list_t *list, int index, void *item); +void list_del(list_t *list, int index); +void list_cat(list_t *list, list_t *source); + +#endif -- cgit v1.2.3-54-g00ecf