aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd-cgi.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-05-28 00:52:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-05-28 00:52:24 +0000
commit022fa36b40b02248436584cf0f71bb26d79eb644 (patch)
tree8cb1f4d8f1ab4f1aee4538621684a188101c867c /package/uhttpd/src/uhttpd-cgi.h
parent8039a1bbb2056019458b5179108e399d0fcb0622 (diff)
downloadupstream-022fa36b40b02248436584cf0f71bb26d79eb644.tar.gz
upstream-022fa36b40b02248436584cf0f71bb26d79eb644.tar.bz2
upstream-022fa36b40b02248436584cf0f71bb26d79eb644.zip
uhttpd: - rewrite large parts of the server, use uloop event driven structure - support concurrent requests and make the upper limit configurable - implement initial version of HTTP-to-ubus JSON proxy and session.* namespace - add compile time support for debug information - code style changes - bump package revision
SVN-Revision: 31931
Diffstat (limited to 'package/uhttpd/src/uhttpd-cgi.h')
-rw-r--r--package/uhttpd/src/uhttpd-cgi.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/package/uhttpd/src/uhttpd-cgi.h b/package/uhttpd/src/uhttpd-cgi.h
index cb84dae0c6..18816bae11 100644
--- a/package/uhttpd/src/uhttpd-cgi.h
+++ b/package/uhttpd/src/uhttpd-cgi.h
@@ -1,7 +1,7 @@
/*
* uhttpd - Tiny single-threaded httpd - CGI header
*
- * Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
+ * Copyright (C) 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,9 +24,19 @@
#include <sys/types.h>
#include <linux/limits.h>
-void uh_cgi_request(
- struct client *cl, struct http_request *req,
- struct path_info *pi, struct interpreter *ip
-);
+#include <time.h>
+
+
+struct uh_cgi_state {
+ int rfd;
+ int wfd;
+ struct client *cl;
+ char httpbuf[UH_LIMIT_MSGHEAD];
+ int content_length;
+ bool header_sent;
+};
+
+bool uh_cgi_request(struct client *cl, struct path_info *pi,
+ struct interpreter *ip);
#endif