WUT
0.1
Wii U Toolchain
|
Data Structures | |
struct | FSClient |
struct | FSCmdBlock |
struct | FSStat |
struct | FSStateChangeInfo |
struct | FSAsyncData |
struct | FSDirectoryEntry |
Typedefs | |
typedef uint32_t | FSDirectoryHandle |
typedef uint32_t | FSFileHandle |
typedef uint32_t | FSPriority |
typedef struct FSAsyncData | FSAsyncData |
typedef struct FSCmdBlock | FSCmdBlock |
typedef struct FSClient | FSClient |
typedef struct FSDirectoryEntry | FSDirectoryEntry |
typedef struct FSStat | FSStat |
typedef struct FSStateChangeInfo | FSStateChangeInfo |
typedef enum FSStatus | FSStatus |
typedef enum FSError | FSError |
typedef enum FSStatFlags | FSStatFlags |
typedef enum FSVolumeState | FSVolumeState |
typedef void(* | FSAsyncCallback) (FSClient *, FSCmdBlock *, FSStatus, uint32_t) |
Enumerations | |
enum | FSStatus |
enum | FSError |
enum | FSStatFlags |
enum | FSVolumeState |
Functions | |
void | FSInit () |
void | FSShutdown () |
FSStatus | FSAddClient (FSClient *client, uint32_t flags) |
FSStatus | FSDelClient (FSClient *client, uint32_t flags) |
uint32_t | FSGetClientNum () |
void | FSInitCmdBlock (FSCmdBlock *block) |
FSStatus | FSSetCmdPriority (FSCmdBlock *block, FSPriority priority) |
void | FSSetStateChangeNotification (FSClient *client, FSStateChangeInfo *info) |
FSStatus | FSGetCwd (FSClient *client, FSCmdBlock *block, char *buffer, uint32_t bufferSize, uint32_t flags) |
FSStatus | FSChangeDir (FSClient *client, FSCmdBlock *block, const char *path, uint32_t flags) |
FSStatus | FSChangeDirAsync (FSClient *client, FSCmdBlock *block, const char *path, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSGetStat (FSClient *client, FSCmdBlock *block, const char *path, FSStat *stat, uint32_t flags) |
FSStatus | FSGetStatAsync (FSClient *client, FSCmdBlock *block, const char *path, FSStat *stat, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSOpenFile (FSClient *client, FSCmdBlock *block, const char *path, const char *mode, FSFileHandle *handle, uint32_t flags) |
FSStatus | FSOpenFileAsync (FSClient *client, FSCmdBlock *block, const char *path, const char *mode, FSFileHandle *outHandle, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSCloseFile (FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t flags) |
FSStatus | FSCloseFileAsync (FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSOpenDir (FSClient *client, FSCmdBlock *block, const char *path, FSDirectoryHandle *handle, uint32_t flags) |
FSStatus | FSOpenDirAsync (FSClient *client, FSCmdBlock *block, const char *path, FSDirectoryHandle *handle, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSReadDir (FSClient *client, FSCmdBlock *block, FSDirectoryHandle handle, FSDirectoryEntry *entry, uint32_t flags) |
FSStatus | FSReadDirAsync (FSClient *client, FSCmdBlock *block, FSDirectoryHandle handle, FSDirectoryEntry *entry, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSCloseDir (FSClient *client, FSCmdBlock *block, FSDirectoryHandle handle, uint32_t flags) |
FSStatus | FSCloseDirAsync (FSClient *client, FSCmdBlock *block, FSDirectoryHandle handle, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSGetStatFile (FSClient *client, FSCmdBlock *block, FSFileHandle handle, FSStat *stat, uint32_t flags) |
FSStatus | FSGetStatFileAsync (FSClient *client, FSCmdBlock *block, FSFileHandle handle, FSStat *stat, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSReadFile (FSClient *client, FSCmdBlock *block, uint8_t *buffer, uint32_t size, uint32_t count, FSFileHandle handle, uint32_t unk1, uint32_t flags) |
FSStatus | FSReadFileAsync (FSClient *client, FSCmdBlock *block, uint8_t *buffer, uint32_t size, uint32_t count, FSFileHandle handle, uint32_t unk1, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSReadFileWithPos (FSClient *client, FSCmdBlock *block, uint8_t *buffer, uint32_t size, uint32_t count, uint32_t pos, FSFileHandle handle, uint32_t unk1, uint32_t flags) |
FSStatus | FSReadFileWithPosAsync (FSClient *client, FSCmdBlock *block, uint8_t *buffer, uint32_t size, uint32_t count, uint32_t pos, FSFileHandle handle, uint32_t unk1, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSGetPosFile (FSClient *client, FSCmdBlock *block, FSFileHandle fileHandle, uint32_t *pos, uint32_t flags) |
FSStatus | FSGetPosFileAsync (FSClient *client, FSCmdBlock *block, FSFileHandle fileHandle, uint32_t *pos, uint32_t flags, FSAsyncData *asyncData) |
FSStatus | FSSetPosFile (FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t pos, uint32_t flags) |
FSStatus | FSSetPosFileAsync (FSClient *client, FSCmdBlock *block, FSFileHandle handle, uint32_t pos, uint32_t flags, FSAsyncData *asyncData) |
FSVolumeState | FSGetVolumeState (FSClient *client) |
FSError | FSGetLastErrorCodeForViewer (FSClient *client) |
First call FSInit to initialise the file system library, then call FSAddClient to initialise your FSClient structure, then you need to use FSInitCmdBlock to initialise an FSCmdBlock structure for each command you want to run in parallel. You must ensure the previous filesystem command has been completed before reusing the same FSCmdBlock, you do not need to reinitialise an FSCmdBlock before reusing it.
typedef uint32_t FSDirectoryHandle |
Definition at line 22 of file filesystem.h.
typedef uint32_t FSFileHandle |
Definition at line 23 of file filesystem.h.
typedef uint32_t FSPriority |
Definition at line 24 of file filesystem.h.
typedef struct FSAsyncData FSAsyncData |
Definition at line 26 of file filesystem.h.
typedef struct FSCmdBlock FSCmdBlock |
Definition at line 27 of file filesystem.h.
Definition at line 28 of file filesystem.h.
typedef struct FSDirectoryEntry FSDirectoryEntry |
Definition at line 29 of file filesystem.h.
Definition at line 30 of file filesystem.h.
typedef struct FSStateChangeInfo FSStateChangeInfo |
Definition at line 31 of file filesystem.h.
typedef enum FSStatFlags FSStatFlags |
typedef enum FSVolumeState FSVolumeState |
typedef void(* FSAsyncCallback) (FSClient *, FSCmdBlock *, FSStatus, uint32_t) |
Definition at line 118 of file filesystem.h.
enum FSStatus |
Definition at line 33 of file filesystem.h.
enum FSError |
Definition at line 56 of file filesystem.h.
enum FSStatFlags |
Enumerator | |
---|---|
FS_STAT_DIRECTORY |
Definition at line 97 of file filesystem.h.
enum FSVolumeState |
Definition at line 102 of file filesystem.h.
void FSInit | ( | ) |
void FSShutdown | ( | ) |
uint32_t FSGetClientNum | ( | ) |
void FSInitCmdBlock | ( | FSCmdBlock * | block | ) |
FSStatus FSSetCmdPriority | ( | FSCmdBlock * | block, |
FSPriority | priority | ||
) |
void FSSetStateChangeNotification | ( | FSClient * | client, |
FSStateChangeInfo * | info | ||
) |
FSStatus FSGetCwd | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
char * | buffer, | ||
uint32_t | bufferSize, | ||
uint32_t | flags | ||
) |
FSStatus FSChangeDir | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
uint32_t | flags | ||
) |
FSStatus FSChangeDirAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSGetStat | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
FSStat * | stat, | ||
uint32_t | flags | ||
) |
FSStatus FSGetStatAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
FSStat * | stat, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSOpenFile | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
const char * | mode, | ||
FSFileHandle * | handle, | ||
uint32_t | flags | ||
) |
FSStatus FSOpenFileAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
const char * | mode, | ||
FSFileHandle * | outHandle, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSCloseFile | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | handle, | ||
uint32_t | flags | ||
) |
FSStatus FSCloseFileAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | handle, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSOpenDir | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
FSDirectoryHandle * | handle, | ||
uint32_t | flags | ||
) |
FSStatus FSOpenDirAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
const char * | path, | ||
FSDirectoryHandle * | handle, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSReadDir | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSDirectoryHandle | handle, | ||
FSDirectoryEntry * | entry, | ||
uint32_t | flags | ||
) |
FSStatus FSReadDirAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSDirectoryHandle | handle, | ||
FSDirectoryEntry * | entry, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSCloseDir | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSDirectoryHandle | handle, | ||
uint32_t | flags | ||
) |
FSStatus FSCloseDirAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSDirectoryHandle | handle, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSGetStatFile | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | handle, | ||
FSStat * | stat, | ||
uint32_t | flags | ||
) |
FSStatus FSGetStatFileAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | handle, | ||
FSStat * | stat, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSReadFile | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
uint8_t * | buffer, | ||
uint32_t | size, | ||
uint32_t | count, | ||
FSFileHandle | handle, | ||
uint32_t | unk1, | ||
uint32_t | flags | ||
) |
FSStatus FSReadFileAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
uint8_t * | buffer, | ||
uint32_t | size, | ||
uint32_t | count, | ||
FSFileHandle | handle, | ||
uint32_t | unk1, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSReadFileWithPos | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
uint8_t * | buffer, | ||
uint32_t | size, | ||
uint32_t | count, | ||
uint32_t | pos, | ||
FSFileHandle | handle, | ||
uint32_t | unk1, | ||
uint32_t | flags | ||
) |
FSStatus FSReadFileWithPosAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
uint8_t * | buffer, | ||
uint32_t | size, | ||
uint32_t | count, | ||
uint32_t | pos, | ||
FSFileHandle | handle, | ||
uint32_t | unk1, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSGetPosFile | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | fileHandle, | ||
uint32_t * | pos, | ||
uint32_t | flags | ||
) |
FSStatus FSGetPosFileAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | fileHandle, | ||
uint32_t * | pos, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSStatus FSSetPosFile | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | handle, | ||
uint32_t | pos, | ||
uint32_t | flags | ||
) |
FSStatus FSSetPosFileAsync | ( | FSClient * | client, |
FSCmdBlock * | block, | ||
FSFileHandle | handle, | ||
uint32_t | pos, | ||
uint32_t | flags, | ||
FSAsyncData * | asyncData | ||
) |
FSVolumeState FSGetVolumeState | ( | FSClient * | client | ) |