32 #ifndef LWIP_HDR_APPS_FS_H
33 #define LWIP_HDR_APPS_FS_H
42 #define FS_READ_EOF -1
43 #define FS_READ_DELAYED -2
45 #if HTTPD_PRECALCULATED_CHECKSUM
46 struct fsdata_chksum {
53 #define FS_FILE_FLAGS_HEADER_INCLUDED 0x01
54 #define FS_FILE_FLAGS_HEADER_PERSISTENT 0x02
55 #define FS_FILE_FLAGS_HEADER_HTTPVER_1_1 0x04
56 #define FS_FILE_FLAGS_SSI 0x08
61 #ifndef FS_FILE_EXTENSION_T_DEFINED
72 #if HTTPD_PRECALCULATED_CHECKSUM
73 const struct fsdata_chksum *chksum;
77 #if LWIP_HTTPD_CUSTOM_FILES
80 #if LWIP_HTTPD_FILE_STATE
85 #if LWIP_HTTPD_FS_ASYNC_READ
86 typedef void (*fs_wait_cb)(
void *arg);
91 #if LWIP_HTTPD_DYNAMIC_FILE_READ
92 #if LWIP_HTTPD_FS_ASYNC_READ
93 int fs_read_async(
struct fs_file *file,
char *buffer,
int count, fs_wait_cb callback_fn,
void *callback_arg);
95 int fs_read(
struct fs_file *file,
char *buffer,
int count);
98 #if LWIP_HTTPD_FS_ASYNC_READ
99 int fs_is_file_ready(
struct fs_file *file, fs_wait_cb callback_fn,
void *callback_arg);
103 #if LWIP_HTTPD_FILE_STATE
105 void *fs_state_init(
struct fs_file *file,
const char *name);
107 void fs_state_free(
struct fs_file *file,
void *state);
116 #if HTTPD_PRECALCULATED_CHECKSUM
118 const struct fsdata_chksum *chksum;
int fs_bytes_left(struct fs_file *file)
Definition: fs.c:171
void fs_file_extension
Definition: fs.h:62
err_t fs_open(struct fs_file *file, const char *name)
Definition: fs.c:57
void fs_close(struct fs_file *file)
Definition: fs.c:96
uint32_t u32_t
Definition: arch.h:129
uint8_t u8_t
Definition: arch.h:125
uint16_t u16_t
Definition: arch.h:127
s8_t err_t
Definition: err.h:96
fs_file_extension * pextension
Definition: fs.h:71
u8_t flags
Definition: fs.h:76
int len
Definition: fs.h:67
const char * data
Definition: fs.h:66
int index
Definition: fs.h:68
const unsigned char * name
Definition: fs.h:112
const struct fsdata_file * next
Definition: fs.h:111
int len
Definition: fs.h:114
u8_t flags
Definition: fs.h:115
const unsigned char * data
Definition: fs.h:113