50#ifndef __VSF_ESPIDF_ESP_VFS_H__
51#define __VSF_ESPIDF_ESP_VFS_H__
78#ifndef ESP_VFS_PATH_MAX
79# define ESP_VFS_PATH_MAX 15
82#define ESP_VFS_FLAG_DEFAULT 0
83#define ESP_VFS_FLAG_CONTEXT_PTR (1 << 0)
84#define ESP_VFS_FLAG_READONLY_FS (1 << 1)
121 int (*
stat_p) (
void *ctx,
const char *path,
struct stat *st);
128 int (*
rename) (
const char *src,
const char *dst);
129 int (*
rename_p)(
void *ctx,
const char *src,
const char *dst);
149 int min_fd,
int max_fd);
int esp_err_t
Definition esp_err.h:41
esp_err_t esp_vfs_unregister(const char *base_path)
Definition esp_vfs_port.c:47
esp_err_t esp_vfs_register_fd_range(const esp_vfs_t *vfs, void *ctx, int min_fd, int max_fd)
Definition esp_vfs_port.c:53
esp_err_t esp_vfs_register(const char *base_path, const esp_vfs_t *vfs, void *ctx)
Definition esp_vfs_port.c:41
struct ieee80211_ext_chansw_ie data
Definition ieee80211.h:80
int ssize_t
Definition types.h:91
long off_t
Definition types.h:123
int(* open_p)(void *ctx, const char *path, int flags, int mode)
Definition esp_vfs.h:109
int flags
Definition esp_vfs.h:94
off_t(* lseek)(int fd, off_t size, int mode)
Definition esp_vfs.h:100
int(* unlink_p)(void *ctx, const char *path)
Definition esp_vfs.h:125
int(* unlink)(const char *path)
Definition esp_vfs.h:124
int(* close)(int fd)
Definition esp_vfs.h:112
int(* fstat_p)(void *ctx, int fd, struct stat *st)
Definition esp_vfs.h:117
ssize_t(* read)(int fd, void *dst, size_t size)
Definition esp_vfs.h:104
int(* rename_p)(void *ctx, const char *src, const char *dst)
Definition esp_vfs.h:129
int(* stat_p)(void *ctx, const char *path, struct stat *st)
Definition esp_vfs.h:121
ssize_t(* read_p)(void *ctx, int fd, void *dst, size_t size)
Definition esp_vfs.h:105
int(* rename)(const char *src, const char *dst)
Definition esp_vfs.h:128
ssize_t(* write_p)(void *ctx, int fd, const void *data, size_t size)
Definition esp_vfs.h:97
int(* fstat)(int fd, struct stat *st)
Definition esp_vfs.h:116
off_t(* lseek_p)(void *ctx, int fd, off_t size, int mode)
Definition esp_vfs.h:101
int(* close_p)(void *ctx, int fd)
Definition esp_vfs.h:113
ssize_t(* write)(int fd, const void *data, size_t size)
Definition esp_vfs.h:96
int(* open)(const char *path, int flags, int mode)
Definition esp_vfs.h:108
uint32_t size
Definition vsf_memfs.h:50