NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
MEMHeapCommon.h
1#pragma once
2#include <types.h>
3#include <lib/rvl/mem/MEMList.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9struct OSMutex; // TODO: fill in struct
10
11typedef struct {
12 u32 mTag;
13 MEMLink mpLink;
14 MEMList mpList;
15 void *mpHeapStart;
16 void *mpHeapEnd;
17 OSMutex *mpMutex;
19
21typedef struct {
22 const struct _MEMAllocatorFuncs *mpFuncs;
23 void *mpHeapHandle;
24 u32 mAlignment;
25 u32 mUnused;
27
28typedef struct _MEMAllocatorFuncs {
29 void *(*alloc)(MEMAllocator *, size_t);
30 void (*free)(MEMAllocator *, void *);
31} MEMAllocatorFuncs;
32
33void *MEMAllocFromAllocator(MEMAllocator *, int);
34
35#ifdef __cplusplus
36}
37#endif