Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
list.h
Go to the documentation of this file.
1#ifndef _REVOLUTION_MEM_LIST_H_
2#define _REVOLUTION_MEM_LIST_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <revolution/types.h>
9
10typedef struct {
11 void* prev;
12 void* next;
13} MEMLink;
14
15typedef struct {
16 void* head;
17 void* tail;
20} MEMList;
21
22void MEMInitList(MEMList*, u16);
23void MEMAppendListObject(MEMList*, void*);
24void* MEMGetNextListObject(MEMList*, void*);
25
26#define MEM_INIT_LIST(list, structName, linkName) MEMInitList(list, offsetof(structName, linkName))
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif // _REVOLUTION_MEM_LIST_H_
unsigned short int u16
Definition types.h:10
void MEMAppendListObject(MEMList *, void *)
Definition mem_list.c:13
void * MEMGetNextListObject(MEMList *, void *)
Definition mem_list.c:35
void MEMInitList(MEMList *, u16)
Definition mem_list.c:6
Definition list.h:15
void * head
Definition list.h:16
void * tail
Definition list.h:17
u16 offs
Definition list.h:19
u16 num
Definition list.h:18