diff options
Diffstat (limited to 'apps/netutils/webserver/httpd.h')
-rw-r--r-- | apps/netutils/webserver/httpd.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/apps/netutils/webserver/httpd.h b/apps/netutils/webserver/httpd.h index 42a1e13f7..dbe3d0e20 100644 --- a/apps/netutils/webserver/httpd.h +++ b/apps/netutils/webserver/httpd.h @@ -58,12 +58,22 @@ /* 'file' must be allocated by caller and will be filled in by the function. */ -int httpd_fs_open(const char *name, struct httpd_fs_file *file); -void httpd_fs_init(void); +#if defined(CONFIG_NETUTILS_HTTPD_SENDFILE) + +int httpd_sendfile_open(const char *name, struct httpd_fs_file *file); +int httpd_sendfile_close(struct httpd_fs_file *file); +int httpd_sendfile_send(int outfd, struct httpd_fs_file *file); + +#elif defined(CONFIG_NETUTILS_HTTPD_MMAP) -#ifdef CONFIG_NETUTILS_HTTPD_MMAP int httpd_mmap_open(const char *name, struct httpd_fs_file *file); int httpd_mmap_close(struct httpd_fs_file *file); + +#else + +int httpd_fs_open(const char *name, struct httpd_fs_file *file); +void httpd_fs_init(void); + #endif #endif /* _NETUTILS_WEBSERVER_HTTPD_H */ |