NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
mem_list.h
1#ifndef RVL_SDK_MEM_LIST_H
2#define RVL_SDK_MEM_LIST_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef struct MEMList {
9 void* head; // at 0x0
10 void* tail; // at 0x4
11 u16 length; // at 0x8
12 u16 offset; // at 0xA
13} MEMList;
14
15typedef struct MEMLink {
16 void* prev; // at 0x0
17 void* next; // at 0x4
18} MEMLink;
19
20void MEMInitList(MEMList* list, u16 offset);
21void MEMAppendListObject(MEMList* list, void* object);
22void MEMRemoveListObject(MEMList* list, void* object);
23void* MEMGetNextListObject(MEMList* list, void* object);
24
25#ifdef __cplusplus
26}
27#endif
28#endif