summaryrefslogtreecommitdiff
path: root/uhttpd-cgi.h
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-28 00:52:24 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-28 00:52:24 +0000
commit4e8baff3b76ee5ff24da13a8e7cf2d220c2aa35d (patch)
tree2ce9e371fcd1f59ca5c6c2d8a296c9a42048821b /uhttpd-cgi.h
parent9f8cff6fab8c49d4a6c094e00e71212ebbd39601 (diff)
downloaduhttpd-4e8baff3b76ee5ff24da13a8e7cf2d220c2aa35d.tar.gz
[package] 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@31931 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd-cgi.h')
-rw-r--r--uhttpd-cgi.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/uhttpd-cgi.h b/uhttpd-cgi.h
index cb84dae..18816ba 100644
--- a/uhttpd-cgi.h
+++ b/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