PS2SDK
PS2 Homebrew Libraries
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
v
Variables
_
c
d
f
g
i
k
m
n
p
q
r
s
t
u
v
w
Typedefs
a
d
h
i
l
m
n
p
r
s
t
w
Enumerations
_
a
c
d
g
i
l
m
n
o
p
s
t
v
Enumerator
c
d
e
g
i
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
z
▼
PS2SDK
PS2SDK - PS2DEV Open Source Project
PS2SDK - KERNEL LIBRARY
remote
►
Topics
►
Data Structures
▼
Files
▼
File List
►
common
►
ee
▼
iop
►
arcade
►
cdvd
►
debug
►
deckard
►
dev9
►
dvrp
►
fs
►
hdd
►
iLink
►
kernel
►
memorycard
►
network
►
security
►
sio
►
sound
►
startup
▼
system
►
alloc
►
boardinf
►
dmacman
►
eeconf
►
eesync
►
excepman
▼
heaplib
▼
include
heaplib.h
►
src
►
igreeting
►
intrman
►
ioman
►
iomanx
►
iopmgr
►
loadcore
►
loadfile
►
modload
►
mtapman
►
padman
►
reboot
►
rmman
►
sbusintr
►
sifcmd
►
sifinit
►
sifman
►
siftoo
►
sio2man
►
ssbusc
►
stdio
►
sysclib
►
sysmem
►
threadman
►
timrman
►
udnl
►
vblank
►
tcpip
►
usb
►
tools
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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
extern
void
*CreateHeap(
int
heapblocksize,
int
flag);
27
extern
void
DeleteHeap(
void
*heap);
28
extern
void
*AllocHeapMemory(
void
*heap,
size_t
nbytes);
29
extern
int
FreeHeapMemory(
void
*heap,
void
*ptr);
30
extern
int
HeapTotalFreeSize(
void
*heap);
31
32
extern
void
HeapPrepare(
void
* mem,
int
size);
33
extern
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
system
heaplib
include
heaplib.h
Generated on Sat May 17 2025 02:56:35 for PS2SDK by
1.12.0