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 
16 
18 {
19  void *prev;
20  void *next;
21 };
22 
23 CHECK_OFFSET(MEMMemoryLink, 0x0, prev);
24 CHECK_OFFSET(MEMMemoryLink, 0x4, next);
25 CHECK_SIZE(MEMMemoryLink, 0x8);
26 
28 {
29  void *head;
30  void *tail;
31  uint16_t count;
33 };
34 CHECK_OFFSET(MEMMemoryList, 0x0, head);
35 CHECK_OFFSET(MEMMemoryList, 0x4, tail);
36 CHECK_OFFSET(MEMMemoryList, 0x8, count);
37 CHECK_OFFSET(MEMMemoryList, 0xa, offsetToMemoryLink);
38 CHECK_SIZE(MEMMemoryList, 0xc);
39 
40 void
42  uint16_t offsetToMemoryLink);
43 
44 void
46  void *object);
47 
48 void
50  void *object);
51 
52 void
54  void *before,
55  void *object);
56 
57 void
59  void *object);
60 
61 void *
63  void *object);
64 
65 void *
67  void *object);
68 
69 void *
71  uint16_t n);
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
void * tail
Definition: memlist.h:30
void MEMInsertListObject(MEMMemoryList *list, void *before, void *object)
void * MEMGetNthListObject(MEMMemoryList *list, uint16_t n)
void MEMAppendListObject(MEMMemoryList *list, void *object)
uint16_t offsetToMemoryLink
Definition: memlist.h:32
uint16_t count
Definition: memlist.h:31
void MEMRemoveListObject(MEMMemoryList *list, void *object)
void * MEMGetPrevListObject(MEMMemoryList *list, void *object)
void MEMPrependListObject(MEMMemoryList *list, void *object)
void * head
Definition: memlist.h:29
void MEMInitList(MEMMemoryList *list, uint16_t offsetToMemoryLink)
void * MEMGetNextListObject(MEMMemoryList *list, void *object)