mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 13:39:14 +00:00
20 lines
354 B
C
20 lines
354 B
C
#ifndef UC_LLIST_H
|
|
#define UC_LLIST_H
|
|
|
|
#include "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
|