sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
ioprpgen.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 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
17
#ifndef __IOPRPGEN__
18
#define __IOPRPGEN__
19
20
#include <
tamtypes.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
struct
ioprpgen_ctx
;
27
28
typedef
int (*ioprpgen_write_cb_t)(
void
*userdata,
const
struct
ioprpgen_ctx
*ctx,
const
void
*buf, u32 size);
29
30
struct
ioprpgen_ctx
31
{
32
ioprpgen_write_cb_t m_write_cb;
33
void
*m_write_cb_userdata;
34
};
35
36
struct
ioprpgen_memwrite_ctx
37
{
38
void
*m_write_ptr;
39
u32 m_write_ptr_size;
40
u32 m_write_ptr_curpos;
41
};
42
43
struct
ioprpgen_entry
44
{
45
const
char
*m_name;
46
const
void
*m_data;
47
u32 m_data_size;
48
};
49
58
extern
void
ioprpgen_setup_membuf
(
struct
ioprpgen_ctx
*ctx,
struct
ioprpgen_memwrite_ctx
*memwrite_ctx,
void
*buf, u32 size);
65
extern
u32
ioprpgen_write_ioprp
(
const
struct
ioprpgen_ctx
*ctx,
const
struct
ioprpgen_entry
*entries);
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* __IOPRPGEN__ */
ioprpgen_write_ioprp
u32 ioprpgen_write_ioprp(const struct ioprpgen_ctx *ctx, const struct ioprpgen_entry *entries)
Definition
ioprpgen.c:81
ioprpgen_setup_membuf
void ioprpgen_setup_membuf(struct ioprpgen_ctx *ctx, struct ioprpgen_memwrite_ctx *memwrite_ctx, void *buf, u32 size)
Definition
ioprpgen.c:40
ioprpgen_ctx
Definition
ioprpgen.h:31
ioprpgen_entry
Definition
ioprpgen.h:44
ioprpgen_memwrite_ctx
Definition
ioprpgen.h:37
tamtypes.h
core
ioprpgen
include
ioprpgen.h
Generated by
1.18.0