diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-11 20:00:21 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-11 20:00:21 +0100 |
| commit | f29d35faf7cc574a1a8c109f2f609db9d3d4b5ef (patch) | |
| tree | dfd2fcbf20f3d37ffe1f19be3d0a9afb7fd24d86 /include/list.h | |
| parent | 24af775b5041cbed67dfc84f3a0d67850a4b6a1b (diff) | |
bazinga
Diffstat (limited to 'include/list.h')
| -rw-r--r-- | include/list.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/list.h b/include/list.h index d4809de..41a5705 100644 --- a/include/list.h +++ b/include/list.h @@ -4,6 +4,8 @@ #include <projectbase/project_base.h> +#include "allocator.h" + typedef struct t_list_item { void *next; @@ -15,10 +17,11 @@ typedef struct t_list list_item *start; u32 count; u16 size; + allocator* al; } list; void list_destroy(list* list); -list list_create(u16 size); +list list_create(u16 size, allocator* al); list_item *list_push(list *list, void *data); void* list_at(list *list, u32 index); void list_remove_at(list *list, u32 index); |
