mirror of
https://github.com/wiiu-env/libmocha.git
synced 2026-08-28 13:14:06 -05:00
Remove obsolete FSAEx functions (use FSA from coreinit instead)
This commit is contained in:
@@ -1,66 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <coreinit/filesystem.h>
|
||||
#include <coreinit/filesystem_fsa.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum FSAMountFlags {
|
||||
FSA_MOUNT_FLAG_LOCAL_MOUNT = 0,
|
||||
FSA_MOUNT_FLAG_BIND_MOUNT = 1,
|
||||
FSA_MOUNT_FLAG_GLOBAL_MOUNT = 2,
|
||||
} FSAMountFlags;
|
||||
|
||||
typedef enum FSAUnmountFlags {
|
||||
FSA_UNMOUNT_FLAG_BIND_MOUNT = 0x80000000,
|
||||
} FSAUnmountFlags;
|
||||
|
||||
/**
|
||||
* Mounts a source to a given path for a given FSClient (or globally if FSA_MOUNT_FLAG_GLOBAL_MOUNT is set)
|
||||
*
|
||||
* @param client valid FSClient pointer with unlocked permissions
|
||||
* @param source Mount source e.g. /dev/sdcard01
|
||||
* @param target Must not start with /vol/storage_ if FSA_MOUNT_FLAG_GLOBAL_MOUNT is **not** set. Requires to start with "/vol/storage_" if FSA_MOUNT_FLAG_GLOBAL_MOUNT or FSA_UNMOUNT_FLAG_BIND_MOUNT is set
|
||||
* @param flags Determines the mount type.
|
||||
* @param arg_buf unknown
|
||||
* @param arg_len unknown
|
||||
* @return
|
||||
*/
|
||||
FSError FSAEx_Mount(FSClient *client, const char *source, const char *target, FSAMountFlags flags, void *arg_buf, uint32_t arg_len);
|
||||
|
||||
/**
|
||||
* Mounts a source to a given path for a given FSClient (or globally if FSA_MOUNT_FLAG_GLOBAL_MOUNT is set)
|
||||
*
|
||||
* @param clientHandle valid /dev/fsa handle with unlocked permissions
|
||||
* @param source Mount source e.g. /dev/sdcard01
|
||||
* @param target Must not start with /vol/storage_ if FSA_MOUNT_FLAG_GLOBAL_MOUNT is **not** set. Requires to start with "/vol/storage_" if FSA_MOUNT_FLAG_GLOBAL_MOUNT is set
|
||||
* @param flags Determines the mount type.
|
||||
* @param arg_buf unknown
|
||||
* @param arg_len unknown
|
||||
* @return
|
||||
*/
|
||||
FSError FSAEx_MountEx(int clientHandle, const char *source, const char *target, FSAMountFlags flags, void *arg_buf, uint32_t arg_len);
|
||||
|
||||
/**
|
||||
* Unmounts a given path
|
||||
* @param client valid FSClient pointer with unlocked permissions
|
||||
* @param mountedTarget path where the mount is mounted to.
|
||||
* @param flags FSA_UNMOUNT_FLAG_BIND_MOUNT is expected for a BindMount
|
||||
* @return
|
||||
*/
|
||||
FSError FSAEx_Unmount(FSClient *client, const char *mountedTarget, FSAUnmountFlags flags);
|
||||
|
||||
/**
|
||||
* Unmounts a given path
|
||||
* @param clientHandle valid /dev/fsa handle with unlocked permissions
|
||||
* @param mountedTarget path where the mount is mounted to.
|
||||
* @param flags FSA_UNMOUNT_FLAG_BIND_MOUNT is expected for a BindMount
|
||||
* @return
|
||||
*/
|
||||
FSError FSAEx_UnmountEx(int clientHandle, const char *mountedTarget, FSAUnmountFlags flags);
|
||||
|
||||
/**
|
||||
* Opens a device for raw read/write
|
||||
* @param client valid FSClient pointer with unlocked permissions
|
||||
|
||||
Reference in New Issue
Block a user