2021-03-28 22:49:05 +02:00
|
|
|
#ifndef C_MALLOC_H
|
|
|
|
|
#define C_MALLOC_H
|
|
|
|
|
|
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
|
|
2021-03-30 02:45:32 +02:00
|
|
|
// TODO: move to correct include
|
|
|
|
|
struct JKRHeap {
|
2021-04-08 16:01:29 +02:00
|
|
|
/* 802CE4D4 */ void* alloc(u32, int);
|
2021-03-30 02:45:32 +02:00
|
|
|
/* 802CE548 */ void free(void*);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct cMl {
|
2021-04-08 16:01:29 +02:00
|
|
|
static JKRHeap* Heap;
|
2021-03-30 02:45:32 +02:00
|
|
|
/* 80263220 */ static void init(JKRHeap*);
|
2021-04-08 16:01:29 +02:00
|
|
|
/* 80263228 */ static void* memalignB(int, u32);
|
2021-03-30 02:45:32 +02:00
|
|
|
/* 80263260 */ static void free(void*);
|
|
|
|
|
};
|
|
|
|
|
|
2021-03-28 22:49:05 +02:00
|
|
|
#endif /* C_MALLOC_H */
|