summaryrefslogtreecommitdiff
path: root/kernel/lib/list.h
blob: 8c3cce49d509782951445edce913bdb2025e38e9 (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 list_get(const struct list *list, int index, void **out);
#endif