blob: b7085cd7ee60b6fd50f5a2d7ac1a3475b5bcc2ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef LIST_H
#define LIST_H
struct list {
void **entries;
int capacity;
int tail_index;
};
int list_init(struct list *list);
void list_reset(struct list *list);
void list_free(struct list *list);
int list_add(struct list *list, void *entry, int *index);
int list_get(const struct list *list, int index, void **out);
#endif
|