VSF Documented
Data Structures | Macros | Typedefs | Functions
esp_vfs.h File Reference
#include "esp_err.h"
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>

Go to the source code of this file.

Data Structures

struct  esp_vfs_t
 

Macros

#define ESP_VFS_PATH_MAX   15
 
#define ESP_VFS_FLAG_DEFAULT   0
 
#define ESP_VFS_FLAG_CONTEXT_PTR   (1 << 0)
 
#define ESP_VFS_FLAG_READONLY_FS   (1 << 1)
 

Typedefs

typedef struct esp_vfs_t esp_vfs_t
 

Functions

esp_err_t esp_vfs_register (const char *base_path, const esp_vfs_t *vfs, void *ctx)
 
esp_err_t esp_vfs_unregister (const char *base_path)
 
esp_err_t esp_vfs_register_fd_range (const esp_vfs_t *vfs, void *ctx, int min_fd, int max_fd)
 

Macro Definition Documentation

◆ ESP_VFS_PATH_MAX

#define ESP_VFS_PATH_MAX   15

◆ ESP_VFS_FLAG_DEFAULT

#define ESP_VFS_FLAG_DEFAULT   0

◆ ESP_VFS_FLAG_CONTEXT_PTR

#define ESP_VFS_FLAG_CONTEXT_PTR   (1 << 0)

◆ ESP_VFS_FLAG_READONLY_FS

#define ESP_VFS_FLAG_READONLY_FS   (1 << 1)

Typedef Documentation

◆ esp_vfs_t

typedef struct esp_vfs_t esp_vfs_t

Function Documentation

◆ esp_vfs_register()

esp_err_t esp_vfs_register ( const char *  base_path,
const esp_vfs_t vfs,
void *  ctx 
)
extern

◆ esp_vfs_unregister()

esp_err_t esp_vfs_unregister ( const char *  base_path)
extern

◆ esp_vfs_register_fd_range()

esp_err_t esp_vfs_register_fd_range ( const esp_vfs_t vfs,
void *  ctx,
int  min_fd,
int  max_fd 
)
extern
Generated from commit: vsfteam/vsf@015f4d1