unicorn/include/list.h

21 lines
362 B
C
Raw Normal View History

#ifndef UC_LLIST_H
#define UC_LLIST_H
2017-01-20 13:13:21 +00:00
#include "unicorn/platform.h"
struct list_item {
struct list_item *next;
void *data;
};
struct list {
struct list_item *head, *tail;
};
struct list *list_new(void);
void list_clear(struct list *list);
void *list_append(struct list *list, void *data);
bool list_remove(struct list *list, void *data);
#endif