mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
parent
89dca4588f
commit
69725292a0
@ -67,9 +67,11 @@ struct fs_file {
|
||||
const char *data;
|
||||
int len;
|
||||
int index;
|
||||
#if LWIP_HTTPD_FILE_EXTENSION
|
||||
/* pextension is free for implementations to hold private (extensional)
|
||||
arbitrary data, e.g. holding some file state or file system handle */
|
||||
fs_file_extension *pextension;
|
||||
#endif /* LWIP_HTTPD_FILE_EXTENSION */
|
||||
#if HTTPD_PRECALCULATED_CHECKSUM
|
||||
const struct fsdata_chksum *chksum;
|
||||
u16_t chksum_count;
|
||||
|
@ -375,6 +375,16 @@
|
||||
#define LWIP_HTTPD_FILE_STATE 0
|
||||
#endif
|
||||
|
||||
/** Set this to 1 to add the pextension field to the fs_file structure.
|
||||
* This is included here to retain compatibility with legacy code that
|
||||
* relies on the presence of the pextension field.
|
||||
* New code should use LWIP_HTTPD_FILE_STATE instead.
|
||||
* This option may be removed in a future version of lwip.
|
||||
*/
|
||||
#if !defined LWIP_HTTPD_FILE_EXTENSION || defined __DOXYGEN__
|
||||
#define LWIP_HTTPD_FILE_EXTENSION 0
|
||||
#endif
|
||||
|
||||
/** HTTPD_PRECALCULATED_CHECKSUM==1: include precompiled checksums for
|
||||
* predefined (MSS-sized) chunks of the files to prevent having to calculate
|
||||
* the checksums at runtime. */
|
||||
|
Loading…
Reference in New Issue
Block a user