Merge pull request #10 from neuschaefer/dev

fs_functions: add FSAddClient and FSGetCurrentCmdBlock
This commit is contained in:
Maschell 2017-05-07 14:21:39 +02:00 committed by GitHub
commit d7b44109ac
2 changed files with 6 additions and 0 deletions

View File

@ -26,9 +26,11 @@
EXPORT_DECL(s32, FSInit, void); EXPORT_DECL(s32, FSInit, void);
EXPORT_DECL(s32, FSShutdown, void); EXPORT_DECL(s32, FSShutdown, void);
EXPORT_DECL(s32, FSAddClient, void *pClient, s32 errHandling);
EXPORT_DECL(s32, FSAddClientEx, void *pClient, s32 unk_zero_param, s32 errHandling); EXPORT_DECL(s32, FSAddClientEx, void *pClient, s32 unk_zero_param, s32 errHandling);
EXPORT_DECL(s32, FSDelClient, void *pClient); EXPORT_DECL(s32, FSDelClient, void *pClient);
EXPORT_DECL(void, FSInitCmdBlock, void *pCmd); EXPORT_DECL(void, FSInitCmdBlock, void *pCmd);
EXPORT_DECL(void *, FSGetCurrentCmdBlock, void *pClient);
EXPORT_DECL(s32, FSGetMountSource, void *pClient, void *pCmd, s32 type, void *source, s32 errHandling); EXPORT_DECL(s32, FSGetMountSource, void *pClient, void *pCmd, s32 type, void *source, s32 errHandling);
EXPORT_DECL(s32, FSMount, void *pClient, void *pCmd, void *source, char *target, u32 bytes, s32 errHandling); EXPORT_DECL(s32, FSMount, void *pClient, void *pCmd, void *source, char *target, u32 bytes, s32 errHandling);
@ -80,9 +82,11 @@ void InitFSFunctionPointers(void)
OS_FIND_EXPORT(coreinit_handle, FSInit); OS_FIND_EXPORT(coreinit_handle, FSInit);
OS_FIND_EXPORT(coreinit_handle, FSShutdown); OS_FIND_EXPORT(coreinit_handle, FSShutdown);
OS_FIND_EXPORT(coreinit_handle, FSAddClient);
OS_FIND_EXPORT(coreinit_handle, FSAddClientEx); OS_FIND_EXPORT(coreinit_handle, FSAddClientEx);
OS_FIND_EXPORT(coreinit_handle, FSDelClient); OS_FIND_EXPORT(coreinit_handle, FSDelClient);
OS_FIND_EXPORT(coreinit_handle, FSInitCmdBlock); OS_FIND_EXPORT(coreinit_handle, FSInitCmdBlock);
OS_FIND_EXPORT(coreinit_handle, FSGetCurrentCmdBlock);
OS_FIND_EXPORT(coreinit_handle, FSGetMountSource); OS_FIND_EXPORT(coreinit_handle, FSGetMountSource);
OS_FIND_EXPORT(coreinit_handle, FSMount); OS_FIND_EXPORT(coreinit_handle, FSMount);

View File

@ -35,9 +35,11 @@ void InitFSFunctionPointers(void);
extern s32 (* FSInit)(void); extern s32 (* FSInit)(void);
extern s32 (* FSShutdown)(void); extern s32 (* FSShutdown)(void);
extern s32 (* FSAddClient)(void *pClient, s32 errHandling);
extern s32 (* FSAddClientEx)(void *pClient, s32 unk_zero_param, s32 errHandling); extern s32 (* FSAddClientEx)(void *pClient, s32 unk_zero_param, s32 errHandling);
extern s32 (* FSDelClient)(void *pClient); extern s32 (* FSDelClient)(void *pClient);
extern void (* FSInitCmdBlock)(void *pCmd); extern void (* FSInitCmdBlock)(void *pCmd);
extern void *(* FSGetCurrentCmdBlock)(void *pClient);
extern s32 (* FSGetMountSource)(void *pClient, void *pCmd, s32 type, void *source, s32 errHandling); extern s32 (* FSGetMountSource)(void *pClient, void *pCmd, s32 type, void *source, s32 errHandling);
extern s32 (* FSMount)(void *pClient, void *pCmd, void *source, char *target, u32 bytes, s32 errHandling); extern s32 (* FSMount)(void *pClient, void *pCmd, void *source, char *target, u32 bytes, s32 errHandling);