From c5c73ce18e76e51e47322851f2490eb3477cf892 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 23 Aug 2017 19:36:18 +0200 Subject: [PATCH] add IOS_IoctlAsync function --- os_functions.c | 2 ++ os_functions.h | 1 + 2 files changed, 3 insertions(+) diff --git a/os_functions.c b/os_functions.c index c993486..9266ad0 100644 --- a/os_functions.c +++ b/os_functions.c @@ -165,6 +165,7 @@ EXPORT_DECL(s32, OSSendAppSwitchRequest,s32 param,void* unknown1,void* unknown2) //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- EXPORT_DECL(s32, IOS_Ioctl,s32 fd, u32 request, void *input_buffer,u32 input_buffer_len, void *output_buffer, u32 output_buffer_len); +EXPORT_DECL(s32, IOS_IoctlAsync,s32 fd, u32 request, void *input_buffer,u32 input_buffer_len, void *output_buffer, u32 output_buffer_len, void *cb, void *cbarg); EXPORT_DECL(s32, IOS_Open,char *path, u32 mode); EXPORT_DECL(s32, IOS_Close,s32 fd); @@ -333,6 +334,7 @@ void InitOSFunctionPointers(void) //! IOS functions //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- OS_FIND_EXPORT(coreinit_handle, IOS_Ioctl); + OS_FIND_EXPORT(coreinit_handle, IOS_IoctlAsync); OS_FIND_EXPORT(coreinit_handle, IOS_Open); OS_FIND_EXPORT(coreinit_handle, IOS_Close); diff --git a/os_functions.h b/os_functions.h index e1888cf..6266f97 100644 --- a/os_functions.h +++ b/os_functions.h @@ -208,6 +208,7 @@ extern s32 (*OSSendAppSwitchRequest)(s32 param,void* unknown1,void* unknown2); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- extern s32 (*IOS_Ioctl)(s32 fd, u32 request, void *input_buffer,u32 input_buffer_len, void *output_buffer, u32 output_buffer_len); +extern s32 (*IOS_IoctlAsync)(s32 fd, u32 request, void *input_buffer,u32 input_buffer_len, void *output_buffer, u32 output_buffer_len, void *cb, void *cbarg); extern s32 (*IOS_Open)(char *path, u32 mode); extern s32 (*IOS_Close)(s32 fd);