summaryrefslogtreecommitdiff
path: root/nuttx/netutils/thttpd/libhttpd.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-12 16:45:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-12 16:45:27 +0000
commitd705291ceef2d2d02a74c6ca33fd07f72171114f (patch)
tree7487c0f44e1d7631d8f38b027ac6d2e996cb7745 /nuttx/netutils/thttpd/libhttpd.h
parent2c0b1a2f8d2294ff3486ba04752cd1bd4b3e279c (diff)
downloadnuttx-d705291ceef2d2d02a74c6ca33fd07f72171114f.tar.gz
nuttx-d705291ceef2d2d02a74c6ca33fd07f72171114f.tar.bz2
nuttx-d705291ceef2d2d02a74c6ca33fd07f72171114f.zip
Add libhttpd.c
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1978 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/libhttpd.h')
-rw-r--r--nuttx/netutils/thttpd/libhttpd.h32
1 files changed, 4 insertions, 28 deletions
diff --git a/nuttx/netutils/thttpd/libhttpd.h b/nuttx/netutils/thttpd/libhttpd.h
index ddd1e2d69..06d15bcfc 100644
--- a/nuttx/netutils/thttpd/libhttpd.h
+++ b/nuttx/netutils/thttpd/libhttpd.h
@@ -53,22 +53,6 @@
* Pre-processor Definitions
****************************************************************************/
-#ifndef CONFIG_THTTPD_PORT
-# define CONFIG_THTTPD_PORT 80
-#endif
-
-#ifndef CONFIG_THTTPD_CHARSET
-# define CONFIG_THTTPD_CHARSET "iso-8859-1"
-#endif
-
-#ifndef CONFIG_THTTPD_IOBUFFERSIZE
-# define CONFIG_THTTPD_IOBUFFERSIZE 256
-#endif
-
-#if CONFIG_THTTPD_IOBUFFERSIZE > 65535
-# error "Can't use uint16 for buffer"
-#endif
-
/* A few convenient defines. */
#ifndef MAX
@@ -117,15 +101,11 @@
/* A multi-family sockaddr. */
-typedef union
-{
- struct sockaddr sa;
#ifdef CONFIG_NET_IPv6
- struct sockaddr_in6 sa_in6;
+typedef struct sockaddr_in6 httpd_sockaddr;
#else
- struct sockaddr_in sa_in;
-#endif /* CONFIG_NET_IPv6 */
-} httpd_sockaddr;
+typedef struct sockaddr_in httpd_sockaddr;
+#endif
/* A server. */
@@ -212,11 +192,7 @@ typedef struct
* Return (httpd_server*) 0 on error.
*/
-#ifdef CONFIG_NET_IPv6
-extern httpd_server *httpd_initialize(struct sockaddr_in6 *sa, char *cwd);
-#else
-extern httpd_server *httpd_initialize(struct sockaddr_in *sa, char *cwd);
-#endif
+extern httpd_server *httpd_initialize(httpd_sockaddr *sa, char *cwd);
/* Call to unlisten/close socket(s) listening for new connections. */