summaryrefslogtreecommitdiff
path: root/apps/netutils/webserver/httpd.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-11 13:19:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-11 13:19:59 +0000
commit26ef7179b0f6c3be8c76eefdca033392209ee42d (patch)
tree06ea25a4404d94f98a2c42a56c34a9dfeb7a3aac /apps/netutils/webserver/httpd.h
parentff113b400adf80f5bf6f07233a2355e48b00676d (diff)
downloadnuttx-26ef7179b0f6c3be8c76eefdca033392209ee42d.tar.gz
nuttx-26ef7179b0f6c3be8c76eefdca033392209ee42d.tar.bz2
nuttx-26ef7179b0f6c3be8c76eefdca033392209ee42d.zip
AVR corrections from Richard Cochran; uIP webserver enhancements from Kate
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5126 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/netutils/webserver/httpd.h')
-rw-r--r--apps/netutils/webserver/httpd.h16
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 */