11 #include "../../types.h" 12 #include "../../services/fs.h" 60 static inline Result romfsInit(
void)
94 static inline Result romfsExit(
void)
u32 parent
Offset of the parent directory.
Definition: romfs_dev.h:32
u32 sibling
Offset of the next sibling file.
Definition: romfs_dev.h:45
RomFS directory.
Definition: romfs_dev.h:30
u64 dataOff
Offset of the file's data.
Definition: romfs_dev.h:46
u32 nameLen
Name length.
Definition: romfs_dev.h:37
u32 sibling
Offset of the next sibling directory.
Definition: romfs_dev.h:33
u64 dataSize
Length of the file's data.
Definition: romfs_dev.h:47
u32 nextHash
File hash table pointer.
Definition: romfs_dev.h:48
Result romfsMountFromFile(FsFile file, u64 offset, struct romfs_mount **mount)
Mounts RomFS from an open file.
u32 Result
Function error code result type.
Definition: types.h:46
uint64_t u64
64-bit unsigned integer.
Definition: types.h:24
uint32_t u32
32-bit unsigned integer.
Definition: types.h:23
u32 nameLen
Name length.
Definition: romfs_dev.h:49
Result romfsUnmount(struct romfs_mount *mount)
Unmounts the RomFS device.
RomFS file.
Definition: romfs_dev.h:42
u32 parent
Offset of the parent directory.
Definition: romfs_dev.h:44
u32 childDir
Offset of the first child directory.
Definition: romfs_dev.h:34
u32 childFile
Offset of the first file.
Definition: romfs_dev.h:35
Result romfsBind(struct romfs_mount *mount)
Bind the RomFS mount.
Result romfsMountFromStorage(FsStorage storage, u64 offset, struct romfs_mount **mount)
Mounts RomFS from an open storage.
u32 nextHash
Directory hash table pointer.
Definition: romfs_dev.h:36
Result romfsMount(struct romfs_mount **mount)
Mounts the Application's RomFS.