2009-07-30 07:41:12 +02:00
|
|
|
#ifndef _WBFS_H_
|
2009-05-03 20:53:31 +02:00
|
|
|
#define _WBFS_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2009-07-30 07:41:12 +02:00
|
|
|
extern "C" {
|
2009-05-03 20:53:31 +02:00
|
|
|
#endif
|
|
|
|
|
2009-07-30 07:41:12 +02:00
|
|
|
#include "libwbfs/libwbfs.h"
|
|
|
|
/* Device list */
|
|
|
|
enum {
|
|
|
|
WBFS_DEVICE_USB = 1, /* USB device */
|
|
|
|
WBFS_DEVICE_SDHC /* SDHC device */
|
|
|
|
};
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2009-07-30 07:41:12 +02:00
|
|
|
/* Macros */
|
2009-05-03 20:53:31 +02:00
|
|
|
#define WBFS_MIN_DEVICE 1
|
|
|
|
#define WBFS_MAX_DEVICE 2
|
2009-07-30 07:41:12 +02:00
|
|
|
|
|
|
|
/* Prototypes */
|
|
|
|
void GetProgressValue(s32 * d, s32 * m);
|
|
|
|
s32 WBFS_Init(u32);
|
|
|
|
s32 WBFS_Open(void);
|
|
|
|
s32 WBFS_Close(void);
|
|
|
|
s32 WBFS_Format(u32, u32);
|
|
|
|
s32 WBFS_GetCount(u32 *);
|
|
|
|
s32 WBFS_GetHeaders(void *, u32, u32);
|
|
|
|
s32 __WBFS_ReadDVD(void *fp, u32 lba, u32 len, void *iobuf);
|
|
|
|
wbfs_t *GetHddInfo(void);
|
|
|
|
s32 WBFS_CheckGame(u8 *);
|
|
|
|
s32 WBFS_AddGame(void);
|
|
|
|
s32 WBFS_RemoveGame(u8 *);
|
|
|
|
s32 WBFS_GameSize(u8 *, f32 *);
|
|
|
|
s32 WBFS_DiskSpace(f32 *, f32 *);
|
|
|
|
s32 WBFS_RenameGame(u8 *, const void *);
|
2009-09-02 10:03:51 +02:00
|
|
|
s32 WBFS_ReIDGame(u8 *discid, const void *newID);
|
2009-07-30 07:41:12 +02:00
|
|
|
f32 WBFS_EstimeGameSize(void);
|
|
|
|
|
|
|
|
s32 __WBFS_ReadUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
s32 __WBFS_WriteUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
|
|
|
|
|
2009-05-03 20:53:31 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-07-30 07:41:12 +02:00
|
|
|
#endif
|