2017-12-19 22:12:58 +01:00
|
|
|
#ifndef __OS_FUNCTIONS_H_
|
|
|
|
#define __OS_FUNCTIONS_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define OS_MUTEX_SIZE 44
|
2019-05-29 18:22:16 +10:00
|
|
|
|
|
|
|
// RetroArch mod: use existing headers; prevents conflicts in griffin
|
|
|
|
#include <wiiu/os.h>
|
|
|
|
#include <wiiu/ios.h>
|
|
|
|
#if 0
|
2017-12-19 22:12:58 +01:00
|
|
|
|
|
|
|
#ifndef __WUT__
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
//! Mutex functions
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
extern void (* OSInitMutex)(void* mutex);
|
|
|
|
extern void (* OSLockMutex)(void* mutex);
|
|
|
|
extern void (* OSUnlockMutex)(void* mutex);
|
|
|
|
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
//! IOS function
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
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);
|
|
|
|
#else
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
//! Mutex functions
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
extern void OSInitMutex(void* mutex);
|
|
|
|
extern void OSLockMutex(void* mutex);
|
|
|
|
extern void OSUnlockMutex(void* mutex);
|
|
|
|
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
//! IOS function
|
|
|
|
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
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);
|
|
|
|
#endif // __WUT__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-05-29 18:22:16 +10:00
|
|
|
#endif // 0
|
|
|
|
|
2017-12-19 22:12:58 +01:00
|
|
|
#endif // __OS_FUNCTIONS_H_
|