PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
heaplib.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __HEAPLIB_H__
17
#define __HEAPLIB_H__
18
19
#include <types.h>
20
#include <
irx.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
void
*CreateHeap(
int
heapblocksize,
int
flag);
27
void
DeleteHeap(
void
*heap);
28
void
*AllocHeapMemory(
void
*heap,
size_t
nbytes);
29
int
FreeHeapMemory(
void
*heap,
void
*ptr);
30
int
HeapTotalFreeSize(
void
*heap);
31
32
void
HeapPrepare(
void
* mem,
int
size);
33
int
HeapChunkSize(
void
* chunk);
34
35
#define heaplib_IMPORTS_start DECLARE_IMPORT_TABLE(heaplib, 1, 1)
36
#define heaplib_IMPORTS_end END_IMPORT_TABLE
37
38
#define I_CreateHeap DECLARE_IMPORT(4, CreateHeap)
39
#define I_DeleteHeap DECLARE_IMPORT(5, DeleteHeap)
40
#define I_AllocHeapMemory DECLARE_IMPORT(6, AllocHeapMemory)
41
#define I_FreeHeapMemory DECLARE_IMPORT(7, FreeHeapMemory)
42
#define I_HeapTotalFreeSize DECLARE_IMPORT(8, HeapTotalFreeSize)
43
#define I_HeapPrepare DECLARE_IMPORT(11, HeapPrepare)
44
#define I_HeapChunkSize DECLARE_IMPORT(15, HeapChunkSize)
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* __HEAPLIB_H__ */
irx.h
iop
kernel
include
heaplib.h
Generated on Thu Nov 14 2024 05:25:27 for PS2SDK by
1.9.8