mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-25 21:54:14 +01:00
Added some IOS_... functions
This commit is contained in:
parent
befce1016a
commit
7310a39d47
@ -139,6 +139,14 @@ EXPORT_DECL(int, IMDisableAPD,void);
|
|||||||
EXPORT_DECL(int, IMIsAPDEnabled,int * result);
|
EXPORT_DECL(int, IMIsAPDEnabled,int * result);
|
||||||
EXPORT_DECL(int, IMIsAPDEnabledBySysSettings,int * result);
|
EXPORT_DECL(int, IMIsAPDEnabledBySysSettings,int * result);
|
||||||
|
|
||||||
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
//! IOS functions
|
||||||
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
EXPORT_DECL(int, IOS_Ioctl,int fd, unsigned int request, void *input_buffer,unsigned int input_buffer_len, void *output_buffer, unsigned int output_buffer_len);
|
||||||
|
EXPORT_DECL(int, IOS_Open,char *path, unsigned int mode);
|
||||||
|
EXPORT_DECL(int, IOS_Close,int fd);
|
||||||
|
|
||||||
void InitAcquireOS(void)
|
void InitAcquireOS(void)
|
||||||
{
|
{
|
||||||
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@ -246,6 +254,13 @@ void InitOSFunctionPointers(void)
|
|||||||
OS_FIND_EXPORT(coreinit_handle, IMIsAPDEnabled);
|
OS_FIND_EXPORT(coreinit_handle, IMIsAPDEnabled);
|
||||||
OS_FIND_EXPORT(coreinit_handle, IMIsAPDEnabledBySysSettings);
|
OS_FIND_EXPORT(coreinit_handle, IMIsAPDEnabledBySysSettings);
|
||||||
|
|
||||||
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
//! IOS functions
|
||||||
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
OS_FIND_EXPORT(coreinit_handle, IOS_Ioctl);
|
||||||
|
OS_FIND_EXPORT(coreinit_handle, IOS_Open);
|
||||||
|
OS_FIND_EXPORT(coreinit_handle, IOS_Close);
|
||||||
|
|
||||||
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
//! Special non library functions
|
//! Special non library functions
|
||||||
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -167,6 +167,14 @@ extern int (*IMDisableAPD)(void);
|
|||||||
extern int (*IMIsAPDEnabled)(int * result);
|
extern int (*IMIsAPDEnabled)(int * result);
|
||||||
extern int (*IMIsAPDEnabledBySysSettings)(int * result);
|
extern int (*IMIsAPDEnabledBySysSettings)(int * result);
|
||||||
|
|
||||||
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
//! IOS functions
|
||||||
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
extern int (*IOS_Ioctl)(int fd, unsigned int request, void *input_buffer,unsigned int input_buffer_len, void *output_buffer, unsigned int output_buffer_len);
|
||||||
|
extern int (*IOS_Open)(char *path, unsigned int mode);
|
||||||
|
extern int (*IOS_Close)(int fd);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user