4#include "filesystem_api_internal.h"
17typedef struct StorageData StorageData;
20 void (*tick)(StorageData* storage);
27 FS_AccessMode access_mode;
32 StorageStatusNotReady,
33 StorageStatusNotMounted,
35 StorageStatusNotAccessible,
36 StorageStatusErrorInternal,
44void storage_data_init(StorageData* storage);
45StorageStatus storage_data_status(StorageData* storage);
46const char* storage_data_status_text(StorageData* storage);
47void storage_data_timestamp(StorageData* storage);
48uint32_t storage_data_get_timestamp(StorageData* storage);
53 (INIT(API_2(storage_file_init)),
54 SET(API_6(storage_file_init_set)),
55 INIT_SET(API_6(storage_file_set)),
56 CLEAR(API_2(storage_file_clear))))
63 StorageFileList_t files;
68bool storage_has_file(
const File* file, StorageData* storage_data);
69bool storage_path_already_open(
71 FS_AccessMode access_mode,
72 StorageData* storage_data);
74void storage_set_storage_file_data(
const File* file,
void* file_data, StorageData* storage);
75void* storage_get_storage_file_data(
const File* file, StorageData* storage);
77void storage_push_storage_file(
80 FS_AccessMode access_mode,
81 StorageData* storage);
82bool storage_pop_storage_file(
File* file, StorageData* storage);
84size_t storage_open_files_count(StorageData* storage);
86void storage_set_read_only(StorageData* storage,
bool read_only);
87bool storage_is_read_only(StorageData* storage);
Full filesystem api structure.
Definition filesystem_api_internal.h:198
Structure that hold file index and returned api errors.
Definition filesystem_api_internal.h:18
Definition storage_glue.h:19
Definition storage_glue.h:23