pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
pspumd.h
Go to the documentation of this file.
1
/*
2
* PSP Software Development Kit - http://www.pspdev.org
3
* -----------------------------------------------------------------------
4
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5
*
6
* pspumd.h - Prototypes for the sceUmd library.
7
*
8
* Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9
* Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10
* Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11
*
12
* $Id: pspumd.h 2448 2008-12-11 21:45:37Z jim $
13
*/
14
#ifndef __UMD_H__
15
#define __UMD_H__
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
23
25
typedef
struct
pspUmdInfo
26
{
28
unsigned
int
size
;
30
unsigned
int
type
;
31
32
}
pspUmdInfo
;
33
35
enum
pspUmdTypes
36
{
37
PSP_UMD_TYPE_GAME
= 0x10,
38
PSP_UMD_TYPE_VIDEO
= 0x20,
39
PSP_UMD_TYPE_AUDIO
= 0x40
40
};
41
43
enum
pspUmdState
44
{
45
PSP_UMD_NOT_PRESENT
= 0x01,
46
PSP_UMD_PRESENT
= 0x02,
47
PSP_UMD_CHANGED
= 0x04,
48
PSP_UMD_INITING
= 0x08,
49
PSP_UMD_INITED
= 0x10,
50
PSP_UMD_READY
= 0x20
51
};
52
54
enum
UmdDriveStat
55
{
57
UMD_WAITFORDISC
=
PSP_UMD_PRESENT
,
59
UMD_WAITFORINIT
=
PSP_UMD_READY
60
};
61
63
typedef
int (*
UmdCallback
)(
int
unknown,
int
event);
64
70
int
sceUmdCheckMedium
(
void
);
71
79
int
sceUmdGetDiscInfo
(
pspUmdInfo
*info);
80
104
int
sceUmdActivate
(
int
unit,
const
char
*drive);
105
115
int
sceUmdDeactivate
(
int
unit,
const
char
*drive);
116
124
int
sceUmdWaitDriveStat
(
int
stat);
125
135
int
sceUmdWaitDriveStatWithTimer
(
int
stat,
unsigned
int
timeout);
136
146
int
sceUmdWaitDriveStatCB
(
int
stat,
unsigned
int
timeout);
147
153
int
sceUmdCancelWaitDriveStat
(
void
);
154
160
int
sceUmdGetDriveStat
(
void
);
161
167
int
sceUmdGetErrorStat
(
void
);
168
185
int
sceUmdRegisterUMDCallBack
(
int
cbid);
186
194
int
sceUmdUnRegisterUMDCallBack
(
int
cbid);
195
201
int
sceUmdReplacePermit
(
void
);
202
208
int
sceUmdReplaceProhibit
(
void
);
209
212
#ifdef __cplusplus
213
}
214
#endif
215
216
#endif
src
umd
pspumd.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2