libiosuhax/source/os_functions.h

33 lines
1.2 KiB
C
Raw Normal View History

#ifndef __OS_FUNCTIONS_H_
#define __OS_FUNCTIONS_H_
#ifdef __cplusplus
extern "C" {
#endif
#define OS_MUTEX_SIZE 44
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//! Mutex functions
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2021-09-24 19:38:34 +02:00
extern void OSInitMutex(void *mutex);
extern void OSLockMutex(void *mutex);
extern void OSUnlockMutex(void *mutex);
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//! IOS function
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2021-09-24 19:38:34 +02:00
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);
2021-09-24 19:38:34 +02:00
extern int IOS_Close(int fd);
#ifdef __cplusplus
}
#endif
#endif // __OS_FUNCTIONS_H_