]> git.sur5r.net Git - freertos/commitdiff
Another two header files added back having been previously removed.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 13 Feb 2010 22:08:45 +0000 (22:08 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 13 Feb 2010 22:08:45 +0000 (22:08 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@978 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/Common/ethernet/FreeTCPIP/apps/httpd/http-strings.h [new file with mode: 0644]
Demo/Common/ethernet/FreeTCPIP/apps/httpd/httpd-cgi.h [new file with mode: 0644]

diff --git a/Demo/Common/ethernet/FreeTCPIP/apps/httpd/http-strings.h b/Demo/Common/ethernet/FreeTCPIP/apps/httpd/http-strings.h
new file mode 100644 (file)
index 0000000..19ad23d
--- /dev/null
@@ -0,0 +1,34 @@
+extern const char      http_http[8];\r
+extern const char      http_200[5];\r
+extern const char      http_301[5];\r
+extern const char      http_302[5];\r
+extern const char      http_get[5];\r
+extern const char      http_10[9];\r
+extern const char      http_11[9];\r
+extern const char      http_content_type[15];\r
+extern const char      http_texthtml[10];\r
+extern const char      http_location[11];\r
+extern const char      http_host[7];\r
+extern const char      http_crnl[3];\r
+extern const char      http_index_html[12];\r
+extern const char      http_404_html[10];\r
+extern const char      http_referer[9];\r
+extern const char      http_header_200[84];\r
+extern const char      http_header_404[91];\r
+extern const char      http_content_type_plain[29];\r
+extern const char      http_content_type_html[28];\r
+extern const char      http_content_type_css[27];\r
+extern const char      http_content_type_text[28];\r
+extern const char      http_content_type_png[28];\r
+extern const char      http_content_type_gif[28];\r
+extern const char      http_content_type_jpg[29];\r
+extern const char      http_content_type_binary[43];\r
+extern const char      http_html[6];\r
+extern const char      http_shtml[7];\r
+extern const char      http_htm[5];\r
+extern const char      http_css[5];\r
+extern const char      http_png[5];\r
+extern const char      http_gif[5];\r
+extern const char      http_jpg[5];\r
+extern const char      http_text[5];\r
+extern const char      http_txt[5];\r
diff --git a/Demo/Common/ethernet/FreeTCPIP/apps/httpd/httpd-cgi.h b/Demo/Common/ethernet/FreeTCPIP/apps/httpd/httpd-cgi.h
new file mode 100644 (file)
index 0000000..99b61fe
--- /dev/null
@@ -0,0 +1,85 @@
+/**\r
+ * \addtogroup httpd\r
+ * @{\r
+ */\r
+\r
+/**\r
+ * \file\r
+ *         Web server script interface header file\r
+ * \author\r
+ *         Adam Dunkels <adam@sics.se>\r
+ *\r
+ */\r
+\r
+/*\r
+ * Copyright (c) 2001, Adam Dunkels.\r
+ * All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted provided that the following conditions\r
+ * are met:\r
+ * 1. Redistributions of source code must retain the above copyright\r
+ *    notice, this list of conditions and the following disclaimer.\r
+ * 2. Redistributions in binary form must reproduce the above copyright\r
+ *    notice, this list of conditions and the following disclaimer in the\r
+ *    documentation and/or other materials provided with the distribution.\r
+ * 3. The name of the author may not be used to endorse or promote\r
+ *    products derived from this software without specific prior\r
+ *    written permission.\r
+ *\r
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS\r
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\r
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\r
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\r
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ *\r
+ * This file is part of the uIP TCP/IP stack.\r
+ *\r
+ * $Id: httpd-cgi.h,v 1.2 2006/06/11 21:46:38 adam Exp $\r
+ *\r
+ */\r
+#ifndef __HTTPD_CGI_H__\r
+#define __HTTPD_CGI_H__\r
+\r
+#include "net/psock.h"\r
+#include "httpd.h"\r
+\r
+typedef                                PT_THREAD( (*httpd_cgifunction) ( struct httpd_state *, char * ) );\r
+\r
+httpd_cgifunction      httpd_cgi( char *name );\r
+\r
+struct httpd_cgi_call\r
+{\r
+       const char                              *name;\r
+       const httpd_cgifunction function;\r
+};\r
+\r
+/**\r
+ * \brief      HTTPD CGI function declaration\r
+ * \param name The C variable name of the function\r
+ * \param str  The string name of the function, used in the script file\r
+ * \param function A pointer to the function that implements it\r
+ *\r
+ *             This macro is used for declaring a HTTPD CGI\r
+ *             function. This function is then added to the list of\r
+ *             HTTPD CGI functions with the httpd_cgi_add() function.\r
+ *\r
+ * \hideinitializer\r
+ */\r
+#define HTTPD_CGI_CALL( name, str, function )                                            \\r
+       static    PT_THREAD( function ( struct httpd_state *, char * ) ); \\r
+       static const struct httpd_cgi_call                                      name =            \\r
+       {                                                                                                                                 \\r
+               str, function                                                                                             \\r
+       }\r
+\r
+void httpd_cgi_init( void );\r
+#endif /* __HTTPD_CGI_H__ */\r
+\r
+/** @} */\r