blob: 6ab9e0bb7b0a8dee7c272bec2deea5cb4084854c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef LIST_H
#define LIST_H
struct list {
void **entries;
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
|