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
6
extern
"C"
{
7
#endif
8
9
struct
OSMutex;
// TODO: fill in struct
10
11
typedef
struct
{
12
u32 mTag;
13
MEMLink
mpLink;
14
MEMList
mpList;
15
void
*mpHeapStart;
16
void
*mpHeapEnd;
17
OSMutex *mpMutex;
18
}
MEMiHeapHead
;
19
20
struct
_MEMAllocatorFuncs
;
21
typedef
struct
{
22
const
struct
_MEMAllocatorFuncs
*mpFuncs;
23
void
*mpHeapHandle;
24
u32 mAlignment;
25
u32 mUnused;
26
}
MEMAllocator
;
27
28
typedef
struct
_MEMAllocatorFuncs
{
29
void
*(*alloc)(
MEMAllocator
*, size_t);
30
void (*free)(
MEMAllocator
*,
void
*);
31
} MEMAllocatorFuncs;
32
33
void
*MEMAllocFromAllocator(
MEMAllocator
*,
int
);
34
35
#ifdef __cplusplus
36
}
37
#endif
MEMAllocator
Definition
MEMHeapCommon.h:21
MEMLink
Definition
MEMList.h:8
MEMList
Definition
MEMList.h:13
MEMiHeapHead
Definition
MEMHeapCommon.h:11
_MEMAllocatorFuncs
Definition
MEMHeapCommon.h:28
include
lib
rvl
mem
MEMHeapCommon.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2