PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
mcserv.h
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright (c) 2009 jimmikaelkael
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#ifndef __MCSERV_H__
12
#define __MCSERV_H__
13
14
#include <
loadcore.h
>
15
#include <
intrman.h
>
16
#include <
sysclib.h
>
17
#include <
sifman.h
>
18
#include <sifcmd.h>
19
#include <
thbase.h
>
20
#include <
stdio.h
>
21
#include <
mcman.h
>
22
23
//#define DEBUG
24
25
#define MODNAME "mcserv"
26
#define MODVER 0x208
27
28
#ifdef SIO_DEBUG
29
#include <
sior.h
>
30
#define DEBUG
31
#define DPRINTF(format, args...) \
32
sio_printf(MODNAME ": " format, ##args)
33
#else
34
#ifdef DEBUG
35
#define DPRINTF(format, args...) \
36
printf(MODNAME ": " format, ##args)
37
#else
38
#define DPRINTF(format, args...)
39
#endif
40
#endif
41
42
43
// internal function prototypes
44
void
*cb_rpc_S_0400(u32 fno,
void
*buf,
int
size);
45
void
thread_rpc_S_0400(
void
* param);
46
int
sceMcInit(
void
);
47
int
sceMcOpen(
void
);
48
int
sceMcClose(
void
);
49
int
sceMcRead(
void
);
50
int
sceMcWrite(
void
);
51
int
sceMcSeek(
void
);
52
int
sceMcGetDir(
void
);
53
int
sceMcFormat(
void
);
54
int
sceMcGetInfo(
void
);
55
int
sceMcDelete(
void
);
56
int
sceMcFlush(
void
);
57
int
sceMcChDir(
void
);
58
int
sceMcSetFileInfo(
void
);
59
int
sceMcEraseBlock(
void
);
60
int
sceMcReadPage(
void
);
61
int
sceMcWritePage(
void
);
62
int
sceMcUnformat(
void
);
63
int
sceMcRead2(
void
);
64
int
sceMcGetInfo2(
void
);
65
int
sceMcGetEntSpace(
void
);
66
int
sceMcCheckBlock(
void
);
67
68
int
_McInit(
void
*rpc_buf);
69
int
_McOpen(
void
*rpc_buf);
70
int
_McClose(
void
*rpc_buf);
71
int
_McRead(
void
*rpc_buf);
72
int
_McWrite(
void
*rpc_buf);
73
int
_McSeek(
void
*rpc_buf);
74
int
_McGetDir(
void
*rpc_buf);
75
int
_McFormat(
void
*rpc_buf);
76
int
_McGetInfo(
void
*rpc_buf);
77
int
_McDelete(
void
*rpc_buf);
78
int
_McFlush(
void
*rpc_buf);
79
int
_McChDir(
void
*rpc_buf);
80
int
_McSetFileInfo(
void
*rpc_buf);
81
int
_McEraseBlock(
void
*rpc_buf);
82
int
_McReadPage(
void
*rpc_buf);
83
int
_McWritePage(
void
*rpc_buf);
84
int
_McUnformat(
void
*rpc_buf);
85
int
_McRead2(
void
*rpc_buf);
86
int
_McGetInfo2(
void
*rpc_buf);
87
int
_McGetEntSpace(
void
*rpc_buf);
88
int
_McCheckBlock(
void
*rpc_buf);
89
90
// filename related mc command
91
// used by: mcOpen, mcGetDir, mcChdir, mcDelete, mcSetFileInfo, mcRename, mcGetEntSpace
92
typedef
struct
{
// size = 1044
93
int
port;
// 0
94
int
slot;
// 4
95
int
flags;
// 8
96
int
maxent;
// 12
97
union
{
98
sceMcTblGetDir
*mcT;
// 16
99
char
*curdir;
100
};
101
char
name[1024];
// 20
102
}
mcNameParam_t
;
103
104
#endif
intrman.h
loadcore.h
mcman.h
_sceMcTblGetDir
Definition
libmc.h:138
sifman.h
sior.h
stdio.h
mcNameParam_t
Definition
libmc.c:103
sysclib.h
thbase.h
iop
memorycard
mcserv
src
mcserv.h
Generated on Thu Nov 14 2024 05:25:27 for PS2SDK by
1.9.8