10 #include <sys/types.h>
11 #include "../../services/fs.h"
13 #define FSDEV_DIRITER_MAGIC 0x66736476
83 Result fsdevIsValidSignedSystemPartitionOnSdCard(
const char *name,
bool *out);
FsSaveDataSpaceId
SaveDataSpaceId.
Definition: fs.h:205
Result fsdevMountSaveDataReadOnly(const char *name, u64 application_id, AccountUid uid)
Mounts the specified SaveData as ReadOnly.
Result fsdevDeleteDirectoryRecursively(const char *path)
Recursively deletes the directory specified by the input path (as used in stdio).
int fsdevTranslatePath(const char *path, FsFileSystem **device, char *outpath)
Writes the FS-path to outpath (which has buffer size FS_MAX_PATH), for the input path (as used in std...
Result fsdevMountTemporaryStorage(const char *name)
Mounts the TemporaryStorage for the current process.
Result fsdevMountCacheStorage(const char *name, u64 application_id, u16 save_data_index)
Mounts the specified CacheStorage.
Result fsdevMountSystemSaveData(const char *name, FsSaveDataSpaceId save_data_space_id, u64 system_save_data_id, AccountUid uid)
Mounts the specified SystemSaveData.
Result fsdevMountBcatSaveData(const char *name, u64 application_id)
Mounts the specified BcatSaveData.
static FsDirectoryEntry * fsdevDirGetEntries(fsdev_dir_t *dir)
Retrieves a pointer to temporary stage for reading entries.
Definition: fs_dev.h:25
Result fsdevGetLastResult(void)
Retrieves the last native result code generated during a failed fsdev operation.
Result fsdevCreateFile(const char *path, size_t size, u32 flags)
This calls fsFsCreateFile on the filesystem specified by the input path (as used in stdio).
Result fsdevSetConcatenationFileAttribute(const char *path)
This calls fsFsSetConcatenationFileAttribute on the filesystem specified by the input path (as used i...
Result fsdevMountDeviceSaveData(const char *name, u64 application_id)
Mounts the specified DeviceSaveData.
int fsdevMountDevice(const char *name, FsFileSystem fs)
Mounts the input fs with the specified device name.
Result fsdevCommitDevice(const char *name)
Uses fsFsCommit() with the specified device.
Result fsdevMountSaveData(const char *name, u64 application_id, AccountUid uid)
Mounts the specified SaveData.
Result fsdevUnmountAll(void)
Unmounts all devices and cleans up any resources used by the FS driver.
int fsdevUnmountDevice(const char *name)
Unmounts the specified device.
Result fsdevMountSdmc(void)
Initializes and mounts the sdmc device if accessible.
Result fsdevMountSystemBcatSaveData(const char *name, u64 system_save_data_id)
Mounts the specified SystemBcatSaveData.
FsFileSystem * fsdevGetDeviceFileSystem(const char *name)
Returns the FsFileSystem for the specified device. Returns NULL when the specified device isn't found...
Account UserId.
Definition: acc.h:25
Directory entry.
Definition: fs.h:56
Open directory struct.
Definition: fs_dev.h:17
size_t size
Current batch size.
Definition: fs_dev.h:21
u32 magic
"fsdv"
Definition: fs_dev.h:18
FsDir fd
File descriptor.
Definition: fs_dev.h:19
ssize_t index
Current entry index.
Definition: fs_dev.h:20
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
#define NX_CONSTEXPR
Flags a function as constexpr in C++14 and above; or as (always) inline otherwise.
Definition: types.h:92
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21