pspsdk-1.0+beta2
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 
36 {
40 };
41 
44 {
51 };
52 
55 {
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