25#if VSF_USE_FS == ENABLED
29#if defined(__VSF_FS_CLASS_IMPLEMENT)
30# define __VSF_CLASS_IMPLEMENT__
31#elif defined(__VSF_FS_CLASS_INHERIT__)
32# define __VSF_CLASS_INHERIT__
43#if VSF_KERNEL_CFG_EDA_SUPPORT_SUB_CALL != ENABLED
44# error VSF_KERNEL_CFG_EDA_SUPPORT_SUB_CALL is needed to use fs
53#if VSF_USE_SIMPLE_STREAM == ENABLED
74 void * (*fn_direct_access)(
vk_file_t *file);
97#if VSF_FS_CFG_USE_CACHE == ENABLED
105#if VSF_FS_CFG_USE_CACHE == ENABLED
120#if VSF_FS_CFG_TIME == ENABLED
146#if defined(__VSF_FS_CLASS_INHERIT__) || defined(__VSF_FS_CLASS_IMPLEMENT)
147typedef enum vk_vfs_file_attr_t {
164# if VSF_FS_CFG_VFS_FILE_HAS_OP == ENABLED
182#if VSF_USE_SIMPLE_STREAM == ENABLED
198#if defined(__VSF_FS_CLASS_INHERIT__) || defined(__VSF_FS_CLASS_IMPLEMENT)
249#if VSF_FS_CFG_USE_CACHE == ENABLED
265#if VSF_FS_CFG_USE_CACHE == ENABLED
273#if defined(__VSF_FS_CLASS_INHERIT__) || defined(__VSF_FS_CLASS_IMPLEMENT)
287#if VSF_USE_SIMPLE_STREAM == ENABLED
298#ifndef __VSF_HEADER_ONLY_SHOW_FS_INFO__
299# if VSF_FS_USE_FATFS == ENABLED
302# if VSF_FS_USE_MEMFS == ENABLED
305# if VSF_FS_USE_WINFS == ENABLED
308# if VSF_FS_USE_LITTLEFS == ENABLED
311# if VSF_FS_USE_LINFS == ENABLED
314# if VSF_FS_USE_ROMFS == ENABLED
319#undef __VSF_FS_CLASS_IMPLEMENT
320#undef __VSF_FS_CLASS_INHERIT__
vsf_err_t
Definition __type.h:42
Definition vsf_simple_stream.h:254
struct ieee80211_ext_chansw_ie data
Definition ieee80211.h:80
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
#define vsf_dcl_class
Definition ooc_class.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
time_t time(time_t *t)
Definition vsf_linux_glibc_time.c:89
uint32_t uintptr_t
Definition stdint.h:38
unsigned int uint_fast32_t
Definition stdint.h:27
long long int64_t
Definition stdint.h:10
unsigned long long uint64_t
Definition stdint.h:11
unsigned short uint_fast16_t
Definition stdint.h:25
vk_file_t root
Definition vsf_fs.h:143
Definition vsf_list.h:888
Definition vsf_list.h:883
#define access
Definition unistd.h:115
void sync(void)
Definition vsf_linux_fs.c:2137
#define __vsf_component_peda_ifs(__peda_name,...)
Definition vsf_component_cfg.h:62
#define vsf_peda_evthandler_t
Definition vsf_component_cfg.h:37
int16_t vsf_evt_t
Definition vsf_eda.h:654
#define dcl_vsf_peda_methods(__decoration,...)
Definition vsf_eda.h:372
bool vk_file_is_match(char *path, char *name)
Definition vsf_fs.c:268
void vk_file_free(vk_file_t *file)
Definition vsf_fs.c:222
void * vk_file_direct_access(vk_file_t *file)
Definition vsf_fs.c:233
vk_file_t * vk_file_alloc(uint_fast16_t size)
Definition vsf_fs.c:203
bool vk_file_is_div(char ch)
Definition vsf_fs.c:263
vsf_err_t vk_file_rename(vk_file_t *olddir, const char *oldname, vk_file_t *newdir, const char *newname)
Definition vsf_fs.c:839
vsf_err_t vk_file_sync(vk_file_t *file)
Definition vsf_fs.c:872
vk_file_t * vk_file_get_parent(vk_file_t *file)
Definition vsf_fs.c:279
vsf_err_t vk_file_write(vk_file_t *file, uint8_t *buff, uint_fast32_t size)
Definition vsf_fs.c:740
void vk_fs_init(void)
Definition vsf_fs.c:292
char * vk_file_getfilename(char *path)
Definition vsf_fs.c:250
vsf_err_t vk_file_unlink(vk_file_t *dir, const char *name)
Definition vsf_fs.c:821
vsf_err_t vk_file_close(vk_file_t *file)
Definition vsf_fs.c:713
vsf_err_t vk_fs_sync(vk_file_t *dir)
Definition vsf_fs.c:674
vsf_err_t vk_file_open(vk_file_t *dir, const char *name, vk_file_t **file)
Definition vsf_fs.c:686
char * vk_file_getfileext(char *fname)
Definition vsf_fs.c:241
vsf_err_t vk_file_create(vk_file_t *dir, const char *name, vk_file_attr_t attr)
Definition vsf_fs.c:802
uint64_t vk_file_tell(vk_file_t *file)
Definition vsf_fs.c:771
uint32_t vk_file_get_ref(vk_file_t *file)
Definition vsf_fs.c:198
vsf_err_t vk_file_read(vk_file_t *file, uint8_t *buff, uint_fast32_t size)
Definition vsf_fs.c:724
vsf_err_t vk_file_seek(vk_file_t *file, int64_t offset, vk_file_whence_t whence)
Definition vsf_fs.c:777
vsf_err_t vk_fs_mount(vk_file_t *dir, const vk_fs_op_t *fsop, void *fsdata)
Definition vsf_fs.c:645
vsf_err_t vk_file_setsize(vk_file_t *file, uint64_t size)
Definition vsf_fs.c:756
vsf_err_t vk_file_write_stream(vk_file_stream_t *pthis, vsf_stream_t *stream, uint_fast32_t size)
Definition vsf_fs.c:1555
vsf_err_t vk_fs_unmount(vk_file_t *dir)
Definition vsf_fs.c:661
vsf_err_t vk_file_read_stream(vk_file_stream_t *pthis, vsf_stream_t *stream, uint_fast32_t size)
Definition vsf_fs.c:1544
vk_file_attr_t
Definition vsf_fs_cfg.h:99
@ VSF_FILE_ATTR_EXT
Definition vsf_fs_cfg.h:108
vk_file_whence_t
Definition vsf_fs_cfg.h:114
const vk_fs_op_t * fsop
Definition vsf_malfs.c:135
uint64_t offset
Definition vsf_memfs.h:49
uint8_t * buff
Definition vsf_memfs.h:51
uint32_t size
Definition vsf_memfs.h:50