diff options
| author | Drew DeVault <sir@cmpwn.com> | 2015-08-16 11:02:56 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2015-08-16 11:02:56 -0400 |
| commit | 7f8ebb7d0dcb687574554b877a0e84f48718df37 (patch) | |
| tree | 9a58f9276059d3c88cb3a92d8229a911b33b0faf /include/list.h | |
| parent | 360b3d67b0457016e4cc32dfd378fd01d30f48df (diff) | |
Move headers to include/
Diffstat (limited to 'include/list.h')
| -rw-r--r-- | include/list.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
