sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
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
23extern "C" {
24#endif
25
26struct ioprpgen_ctx;
27
28typedef int (*ioprpgen_write_cb_t)(void *userdata, const struct ioprpgen_ctx *ctx, const void *buf, u32 size);
29
31{
32 ioprpgen_write_cb_t m_write_cb;
33 void *m_write_cb_userdata;
34};
35
37{
38 void *m_write_ptr;
39 u32 m_write_ptr_size;
40 u32 m_write_ptr_curpos;
41};
42
44{
45 const char *m_name;
46 const void *m_data;
47 u32 m_data_size;
48};
49
58extern void ioprpgen_setup_membuf(struct ioprpgen_ctx *ctx, struct ioprpgen_memwrite_ctx *memwrite_ctx, void *buf, u32 size);
65extern 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__ */
u32 ioprpgen_write_ioprp(const struct ioprpgen_ctx *ctx, const struct ioprpgen_entry *entries)
Definition ioprpgen.c:81
void ioprpgen_setup_membuf(struct ioprpgen_ctx *ctx, struct ioprpgen_memwrite_ctx *memwrite_ctx, void *buf, u32 size)
Definition ioprpgen.c:40
Definition ioprpgen.h:44