blob: 821c90dc737ff10061bd223859362560a5abb5a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef RVL_SDK_MEM_LIST_H
#define RVL_SDK_MEM_LIST_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct MEMList {
void *head; // at 0x0
void *tail; // at 0x4
u16 length; // at 0x8
u16 offset; // at 0xA
} MEMList;
typedef struct MEMLink {
void *prev; // at 0x0
void *next; // at 0x4
} MEMLink;
void MEMInitList(MEMList *list, u16 offset);
void MEMAppendListObject(MEMList *list, void *object);
void MEMRemoveListObject(MEMList *list, void *object);
void *MEMGetNextListObject(MEMList *list, void *object);
#ifdef __cplusplus
}
#endif
#endif
|