kernel: fq_codel: dont reinit flow state
[openwrt/staging/lynxis/omap.git] / package / uhttpd / src / uhttpd-cgi.h
index c90557d8fd5a6f7bf4720fc93acb32c58272ec19..c7094da4248130088d3008c91bcc1d4e83866a04 100644 (file)
@@ -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.
 #include <sys/types.h>
 #include <linux/limits.h>
 
-void uh_cgi_request(
-       struct client *cl, struct http_request *req, struct path_info *pi
-);
+#include <time.h>
+
+
+struct uh_cgi_state {
+       struct {
+               char buf[UH_LIMIT_MSGHEAD];
+               char *ptr;
+               int len;
+       } httpbuf;
+       int content_length;
+       bool header_sent;
+};
+
+bool uh_cgi_request(struct client *cl, struct path_info *pi,
+                                       struct interpreter *ip);
 
 #endif