mirror of
https://github.com/wiiu-env/libiosuhax.git
synced 2025-01-23 07:11:12 +01:00
Use wut headers for everything
This commit is contained in:
parent
15a9847ae5
commit
d9bbd3e72b
@ -22,7 +22,7 @@
|
||||
* distribution.
|
||||
***************************************************************************/
|
||||
#include "iosuhax.h"
|
||||
#include "os_functions.h"
|
||||
#include <coreinit/ios.h>
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
* distribution.
|
||||
***************************************************************************/
|
||||
#include "iosuhax.h"
|
||||
#include "os_functions.h"
|
||||
#include <coreinit/mutex.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <malloc.h>
|
||||
@ -957,7 +957,7 @@ static int fs_dev_add_device(const char *name, const char *mount_path, int fsaFd
|
||||
priv->mount_path = devpath;
|
||||
priv->fsaFd = fsaFd;
|
||||
priv->mounted = isMounted;
|
||||
priv->pMutex = malloc(OS_MUTEX_SIZE);
|
||||
priv->pMutex = malloc(sizeof(OSMutex));
|
||||
|
||||
if (!priv->pMutex) {
|
||||
free(dev);
|
||||
|
@ -1,32 +0,0 @@
|
||||
#ifndef __OS_FUNCTIONS_H_
|
||||
#define __OS_FUNCTIONS_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define OS_MUTEX_SIZE 44
|
||||
|
||||
//!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
//! 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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __OS_FUNCTIONS_H_
|
Loading…
x
Reference in New Issue
Block a user