diff options
| author | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-15 03:24:41 -0500 |
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2019-01-15 09:26:18 +0100 |
| commit | dff6b6372558769665bd78166f2cd5eb671bcddc (patch) | |
| tree | 328493bba12f1dee178db193739c1731581ba0c6 /include | |
| parent | 56b672a16c248c268fde17243a914a3bcfa4ac47 (diff) | |
Remove list.c
This replaces all occurrences of `list_t` with `wl_list` to eliminate
the need for `list.c`
Diffstat (limited to 'include')
| -rw-r--r-- | include/list.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/list.h b/include/list.h deleted file mode 100644 index 7a5984a..0000000 --- a/include/list.h +++ /dev/null @@ -1,21 +0,0 @@ -#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); - -/* Calls `free` for each item in the list, then frees the list. - * Do not use this to free lists of primitives or items that require more - * complicated deallocation code. - */ -void list_free_items_and_destroy(list_t *list); -#endif |
