53 #ifndef LWIP_HTTPD_CUSTOM_FILES
54 #define LWIP_HTTPD_CUSTOM_FILES 0
60 #ifndef LWIP_HTTPD_DYNAMIC_FILE_READ
61 #define LWIP_HTTPD_DYNAMIC_FILE_READ 0
66 #ifndef LWIP_HTTPD_FILE_STATE
67 #define LWIP_HTTPD_FILE_STATE 0
73 #ifndef HTTPD_PRECALCULATED_CHECKSUM
74 #define HTTPD_PRECALCULATED_CHECKSUM 0
79 #ifndef LWIP_HTTPD_FS_ASYNC_READ
80 #define LWIP_HTTPD_FS_ASYNC_READ 0
83 #define FS_READ_EOF -1
84 #define FS_READ_DELAYED -2
86 #if HTTPD_PRECALCULATED_CHECKSUM
87 struct fsdata_chksum {
92 #endif // HTTPD_PRECALCULATED_CHECKSUM
99 #if HTTPD_PRECALCULATED_CHECKSUM
100 const struct fsdata_chksum *chksum;
102 #endif // HTTPD_PRECALCULATED_CHECKSUM
104 #if LWIP_HTTPD_CUSTOM_FILES
106 #endif // LWIP_HTTPD_CUSTOM_FILES
107 #if LWIP_HTTPD_FILE_STATE
109 #endif // LWIP_HTTPD_FILE_STATE
112 #if LWIP_HTTPD_FS_ASYNC_READ
113 typedef void (*fs_wait_cb)(
void *arg);
114 #endif // LWIP_HTTPD_FS_ASYNC_READ
118 #if LWIP_HTTPD_DYNAMIC_FILE_READ
119 #if LWIP_HTTPD_FS_ASYNC_READ
120 int fs_read_async(
struct fs_file *file,
char *
buffer,
int count, fs_wait_cb callback_fn,
void *callback_arg);
121 #else // LWIP_HTTPD_FS_ASYNC_READ
123 #endif // LWIP_HTTPD_FS_ASYNC_READ
124 #endif // LWIP_HTTPD_DYNAMIC_FILE_READ
125 #if LWIP_HTTPD_FS_ASYNC_READ
126 int fs_is_file_ready(
struct fs_file *file, fs_wait_cb callback_fn,
void *callback_arg);
127 #endif // LWIP_HTTPD_FS_ASYNC_READ
130 #if LWIP_HTTPD_FILE_STATE
132 void *fs_state_init(
struct fs_file *file,
const char *name);
134 void fs_state_free(
struct fs_file *file,
void *state);
135 #endif // #if LWIP_HTTPD_FILE_STATE
int index
Definition: fs.h:97
int fs_bytes_left(struct fs_file *file)
Definition: fs.c:196
u8_t http_header_included
Definition: fs.h:103
int len
Definition: fs.h:96
UINT8 buffer[BUFFER_SIZE_BYTE]
Definition: flash_demo_ram.c:53
void * pextension
Definition: fs.h:98
err_t fs_open(struct fs_file *file, const char *name)
Definition: fs.c:76
void fs_close(struct fs_file *file)
Definition: fs.c:117
const char * data
Definition: fs.h:95