WUT  0.1
Wii U Toolchain
memlist.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
15 {
16  void *prev;
17  void *next;
18 };
19 
20 CHECK_OFFSET(MemoryLink, 0x0, prev);
21 CHECK_OFFSET(MemoryLink, 0x4, next);
22 CHECK_SIZE(MemoryLink, 0x8);
23 
25 {
26  void *head;
27  void *tail;
28  uint16_t count;
30 };
31 CHECK_OFFSET(MEMMemoryList, 0x0, head);
32 CHECK_OFFSET(MEMMemoryList, 0x4, tail);
33 CHECK_OFFSET(MEMMemoryList, 0x8, count);
34 CHECK_OFFSET(MEMMemoryList, 0xa, offsetToMemoryLink);
35 CHECK_SIZE(MEMMemoryList, 0xc);
36 
37 void
39  uint16_t offsetToMemoryLink);
40 
41 void
43  void *object);
44 
45 void
47  void *object);
48 
49 void
51  void *before,
52  void *object);
53 
54 void
56  void *object);
57 
58 void *
60  void *object);
61 
62 void *
64  void *object);
65 
66 void *
67 MEMGetNthListObject(MEMMEMMemoryList *list,
68  uint16_t n);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
void * tail
Definition: memlist.h:27
void MEMInsertListObject(MEMMemoryList *list, void *before, void *object)
void MEMAppendListObject(MEMMemoryList *list, void *object)
uint16_t offsetToMemoryLink
Definition: memlist.h:29
uint16_t count
Definition: memlist.h:28
void MEMRemoveListObject(MEMMemoryList *list, void *object)
void * MEMGetNthListObject(MEMMEMMemoryList *list, uint16_t n)
void * MEMGetPrevListObject(MEMMemoryList *list, void *object)
void MEMPrependListObject(MEMMemoryList *list, void *object)
void * head
Definition: memlist.h:26
void MEMInitList(MEMMemoryList *list, uint16_t offsetToMemoryLink)
void * MEMGetNextListObject(MEMMemoryList *list, void *object)