mirror of
https://github.com/zeldaret/tp
synced 2026-06-27 02:35:22 -04:00
255705a4cd
* Implement revolution/ax Copied mostly unchanged from Petari * Implement revolution/axfx Copied mostly unchanged from Petari * Implement revolution/arc Copied mostly unchanged from Petari * Implement revolution/mem Copied mostly unchanged from Petari * Implement revolution/tpl Copied verbatim from Petari * revolution/ipc matching (except small linking issue on ShieldD) * revolution/pad/Pad matching Largely copied from Petari with significant modifications * Fix up ut_TextWriterBase symbols * Fix homebuttonLib file names in Shield splits
33 lines
572 B
C
33 lines
572 B
C
#ifndef _REVOLUTION_MEM_LIST_H_
|
|
#define _REVOLUTION_MEM_LIST_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <revolution/types.h>
|
|
|
|
typedef struct {
|
|
void* prev;
|
|
void* next;
|
|
} MEMLink;
|
|
|
|
typedef struct {
|
|
void* head;
|
|
void* tail;
|
|
u16 num;
|
|
u16 offs;
|
|
} MEMList;
|
|
|
|
void MEMInitList(MEMList*, u16);
|
|
void MEMAppendListObject(MEMList*, void*);
|
|
void* MEMGetNextListObject(MEMList*, void*);
|
|
|
|
#define MEM_INIT_LIST(list, structName, linkName) MEMInitList(list, offsetof(structName, linkName))
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _REVOLUTION_MEM_LIST_H_
|