RetroArch
memlist.h
Go to the documentation of this file.
1 #pragma once
2 #include <wiiu/types.h>
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 typedef struct MEMMemoryLink
9 {
10  void *prev;
11  void *next;
13 
14 typedef struct MEMMemoryList
15 {
16  void *head;
17  void *tail;
21 
22 void MEMInitList(MEMMemoryList *list, uint16_t offsetToMemoryLink);
23 void MEMAppendListObject(MEMMemoryList *list, void *object);
24 void MEMPrependListObject(MEMMemoryList *list, void *object);
25 void MEMInsertListObject(MEMMemoryList *list, void *before, void *object);
26 void MEMRemoveListObject(MEMMemoryList *list, void *object);
27 void *MEMGetNextListObject(MEMMemoryList *list, void *object);
28 void *MEMGetPrevListObject(MEMMemoryList *list, void *object);
30 
31 #ifdef __cplusplus
32 }
33 #endif
void * MEMGetNthListObject(MEMMemoryList *list, uint16_t n)
void MEMInsertListObject(MEMMemoryList *list, void *before, void *object)
void MEMAppendListObject(MEMMemoryList *list, void *object)
void * next
Definition: memlist.h:11
void MEMInitList(MEMMemoryList *list, uint16_t offsetToMemoryLink)
struct MEMMemoryLink MEMMemoryLink
Definition: memlist.h:8
struct MEMMemoryList MEMMemoryList
void * head
Definition: memlist.h:16
void * MEMGetPrevListObject(MEMMemoryList *list, void *object)
void MEMRemoveListObject(MEMMemoryList *list, void *object)
void MEMPrependListObject(MEMMemoryList *list, void *object)
void * MEMGetNextListObject(MEMMemoryList *list, void *object)
void * prev
Definition: memlist.h:10
void * tail
Definition: memlist.h:17
uint16_t offsetToMemoryLink
Definition: memlist.h:19
unsigned short uint16_t
Definition: stdint.h:125
Definition: memlist.h:14
GLdouble n
Definition: glext.h:8396
uint16_t count
Definition: memlist.h:18