wut  v1.7.0
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 
14 typedef struct MEMMemoryLink MEMMemoryLink;
15 typedef struct MEMMemoryList MEMMemoryList;
16 
18 {
19  void *prev;
20  void *next;
21 };
22 WUT_CHECK_OFFSET(MEMMemoryLink, 0x0, prev);
23 WUT_CHECK_OFFSET(MEMMemoryLink, 0x4, next);
24 WUT_CHECK_SIZE(MEMMemoryLink, 0x8);
25 
27 {
28  void *head;
29  void *tail;
30  uint16_t count;
32 };
33 WUT_CHECK_OFFSET(MEMMemoryList, 0x0, head);
34 WUT_CHECK_OFFSET(MEMMemoryList, 0x4, tail);
35 WUT_CHECK_OFFSET(MEMMemoryList, 0x8, count);
36 WUT_CHECK_OFFSET(MEMMemoryList, 0xa, offsetToMemoryLink);
37 WUT_CHECK_SIZE(MEMMemoryList, 0xc);
38 
39 void
41  uint16_t offsetToMemoryLink);
42 
43 void
45  void *object);
46 
47 void
49  void *object);
50 
51 void
53  void *before,
54  void *object);
55 
56 void
58  void *object);
59 
60 void *
62  void *object);
63 
64 void *
66  void *object);
67 
68 void *
70  uint16_t n);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
uint16_t offsetToMemoryLink
Definition: memlist.h:31
void * tail
Definition: memlist.h:29
void * head
Definition: memlist.h:28
void * next
Definition: memlist.h:20
uint16_t count
Definition: memlist.h:30
void * prev
Definition: memlist.h:19
void MEMRemoveListObject(MEMMemoryList *list, void *object)
void MEMInsertListObject(MEMMemoryList *list, void *before, void *object)
void MEMPrependListObject(MEMMemoryList *list, void *object)
void * MEMGetPrevListObject(MEMMemoryList *list, void *object)
void MEMInitList(MEMMemoryList *list, uint16_t offsetToMemoryLink)
void * MEMGetNextListObject(MEMMemoryList *list, void *object)
void * MEMGetNthListObject(MEMMemoryList *list, uint16_t n)
void MEMAppendListObject(MEMMemoryList *list, void *object)