32#ifndef LWIP_HDR_APPS_FS_H
33#define LWIP_HDR_APPS_FS_H
43#define FS_READ_DELAYED -2
45#if HTTPD_PRECALCULATED_CHECKSUM
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
62typedef void fs_file_extension;
71 fs_file_extension *pextension;
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
86typedef void (*fs_wait_cb)(
void *arg);
90void fs_close(
struct fs_file *file);
91#if LWIP_HTTPD_DYNAMIC_FILE_READ
92#if LWIP_HTTPD_FS_ASYNC_READ
93int fs_read_async(
struct fs_file *file,
char *buffer,
int count, fs_wait_cb callback_fn,
void *callback_arg);
95int fs_read(
struct fs_file *file,
char *buffer,
int count);
98#if LWIP_HTTPD_FS_ASYNC_READ
99int fs_is_file_ready(
struct fs_file *file, fs_wait_cb callback_fn,
void *callback_arg);
101int fs_bytes_left(
struct fs_file *file);
103#if LWIP_HTTPD_FILE_STATE
105void *fs_state_init(
struct fs_file *file,
const char *name);
107void fs_state_free(
struct fs_file *file,
void *state);
112 const unsigned char *name;
113 const unsigned char *data;
116#if HTTPD_PRECALCULATED_CHECKSUM
118 const struct fsdata_chksum *chksum;
s8_t err_t
Definition: err.h:96