libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ifilesystem.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include <libtransistor/types.h>
15 
17 
18 // TODO: Codegen structs
19 
20 result_t ifilesystem_create_file(ifilesystem_t obj, uint32_t in_mode, uint64_t in_size, const char in_path[0x301]);
21 result_t ifilesystem_delete_file(ifilesystem_t obj, const char in_path[0x301]);
22 result_t ifilesystem_create_directory(ifilesystem_t obj, const char in_path[0x301]);
23 result_t ifilesystem_delete_directory(ifilesystem_t obj, const char in_path[0x301]);
24 result_t ifilesystem_delete_directory_recursively(ifilesystem_t obj, const char in_path[0x301]);
25 result_t ifilesystem_rename_file(ifilesystem_t obj, const char in_oldPath[0x301], const char in_newPath[0x301]);
26 result_t ifilesystem_rename_directory(ifilesystem_t obj, const char in_oldPath[0x301], const char in_newPath[0x301]);
27 result_t ifilesystem_get_entry_type(ifilesystem_t obj, uint32_t *out_unk1, const char in_path[0x301]);
28 result_t ifilesystem_open_file(ifilesystem_t obj, ifile_t *out_file, uint32_t in_mode, const char in_path[0x301]);
29 result_t ifilesystem_open_directory(ifilesystem_t obj, idirectory_t *out_directory, uint32_t in_unk0, const char in_path[0x301]);
30 result_t ifilesystem_commit(ifilesystem_t obj);
31 result_t ifilesystem_get_free_space_size(ifilesystem_t obj, uint64_t *out_totalFreeSpace, const char in_path[0x301]);
32 result_t ifilesystem_get_total_space_size(ifilesystem_t obj, uint64_t *out_totalSize, const char in_path[0x301]);
33 result_t ifilesystem_clean_directory_recursively(ifilesystem_t obj, const char in_path[0x301]);
34 result_t ifilesystem_get_file_time_stamp_raw(ifilesystem_t obj, uint8_t out_timestamp[0x20], const char in_path[0x301]);
35 
36 #ifdef __cplusplus
37 }
38 #endif
Various system types.
uint32_t result_t
Function result.
Definition: types.h:51
File.
Represents either an object within an IPC domain or a standalone object.
Definition: ipc.h:32
Directory.