48#if defined(LWS_PLAT_FREERTOS)
50#define LWS_FOP_OPEN _open
51#define LWS_FOP_CLOSE _close
52#define LWS_FOP_SEEK_CUR _seek_cur
53#define LWS_FOP_READ _read
54#define LWS_FOP_WRITE _write
56#define LWS_FOP_OPEN open
57#define LWS_FOP_CLOSE close
58#define LWS_FOP_SEEK_CUR seek_cur
59#define LWS_FOP_READ read
60#define LWS_FOP_WRITE write
63#define LWS_FOP_FLAGS_MASK ((1 << 23) - 1)
64#define LWS_FOP_FLAG_COMPR_ACCEPTABLE_GZIP (1 << 24)
65#define LWS_FOP_FLAG_COMPR_IS_GZIP (1 << 25)
66#define LWS_FOP_FLAG_MOD_TIME_VALID (1 << 26)
67#define LWS_FOP_FLAG_VIRTUAL (1 << 27)
98 const char *filename,
const char *vpath,
132 struct lws_context *
cx;
215 if (*fop_fd && (*fop_fd)->fops)
216 return (*fop_fd)->fops->LWS_FOP_CLOSE(fop_fd);
#define LWS_WARN_UNUSED_RESULT
unsigned long long lws_filepos_t
LWS_VISIBLE LWS_EXTERN uint32_t LWS_WARN_UNUSED_RESULT lws_vfs_get_mod_time(lws_fop_fd_t fop_fd)
LWS_VISIBLE LWS_EXTERN lws_fileofs_t lws_vfs_file_seek_set(lws_fop_fd_t fop_fd, lws_fileofs_t offset)
LWS_VISIBLE LWS_EXTERN lws_filepos_t LWS_WARN_UNUSED_RESULT lws_vfs_tell(lws_fop_fd_t fop_fd)
lws_fop_fd_t(* LWS_FOP_OPEN)(const struct lws_plat_file_ops *fops_own, const struct lws_plat_file_ops *fops, const char *filename, const char *vpath, lws_fop_flags_t *flags)
LWS_VISIBLE LWS_EXTERN lws_fop_fd_t _lws_plat_file_open(const struct lws_plat_file_ops *fops_own, const struct lws_plat_file_ops *fops, const char *filename, const char *vpath, lws_fop_flags_t *flags)
const struct lws_plat_file_ops * next
LWS_VISIBLE LWS_EXTERN int _lws_plat_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len)
struct lws_fops_index fi[3]
LWS_VISIBLE LWS_EXTERN lws_fileofs_t _lws_plat_file_seek_cur(lws_fop_fd_t fop_fd, lws_fileofs_t offset)
int(* LWS_FOP_WRITE)(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len)
const struct lws_plat_file_ops * fops
LWS_VISIBLE LWS_EXTERN void lws_set_fops(struct lws_context *context, const struct lws_plat_file_ops *fops)
LWS_VISIBLE LWS_EXTERN int _lws_plat_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len)
struct lws_plat_file_ops fops_zip
lws_fileofs_t(* LWS_FOP_SEEK_CUR)(lws_fop_fd_t fop_fd, lws_fileofs_t offset_from_cur_pos)
LWS_VISIBLE LWS_EXTERN int lws_alloc_vfs_file(struct lws_context *context, const char *filename, uint8_t **buf, lws_filepos_t *amount)
LWS_VISIBLE LWS_EXTERN struct lws_plat_file_ops *LWS_WARN_UNUSED_RESULT lws_get_fops(struct lws_context *context)
LWS_VISIBLE LWS_EXTERN lws_filepos_t LWS_WARN_UNUSED_RESULT lws_vfs_get_length(lws_fop_fd_t fop_fd)
LWS_VISIBLE LWS_EXTERN lws_fileofs_t lws_vfs_file_seek_end(lws_fop_fd_t fop_fd, lws_fileofs_t offset)
int(* LWS_FOP_CLOSE)(lws_fop_fd_t *fop_fd)
LWS_VISIBLE LWS_EXTERN int _lws_plat_file_close(lws_fop_fd_t *fop_fd)
int(* LWS_FOP_READ)(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len)
LWS_VISIBLE LWS_EXTERN lws_fop_fd_t LWS_WARN_UNUSED_RESULT lws_vfs_file_open(const struct lws_plat_file_ops *fops, const char *vfs_path, lws_fop_flags_t *flags)
struct lws_fop_fd * lws_fop_fd_t