]> git.sur5r.net Git - freertos/blob - Demo/uIP_Demo_Rowley_ARM7/uip/httpd.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / uIP_Demo_Rowley_ARM7 / uip / httpd.h
1 /**\r
2  * \addtogroup httpd\r
3  * @{\r
4  */\r
5 \r
6 /**\r
7  * \file\r
8  * HTTP server header file.\r
9  * \author Adam Dunkels <adam@dunkels.com>\r
10  */\r
11 \r
12 /*\r
13  * Copyright (c) 2001, Adam Dunkels.\r
14  * All rights reserved. \r
15  *\r
16  * Redistribution and use in source and binary forms, with or without \r
17  * modification, are permitted provided that the following conditions \r
18  * are met: \r
19  * 1. Redistributions of source code must retain the above copyright \r
20  *    notice, this list of conditions and the following disclaimer. \r
21  * 2. Redistributions in binary form must reproduce the above copyright \r
22  *    notice, this list of conditions and the following disclaimer in the \r
23  *    documentation and/or other materials provided with the distribution. \r
24  * 3. The name of the author may not be used to endorse or promote\r
25  *    products derived from this software without specific prior\r
26  *    written permission.  \r
27  *\r
28  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS\r
29  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r
30  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
31  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\r
32  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
33  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\r
34  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
35  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\r
36  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
37  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
38  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
39  *\r
40  * This file is part of the uIP TCP/IP stack.\r
41  *\r
42  * $Id: httpd.h,v 1.4.2.3 2003/10/06 22:56:44 adam Exp $\r
43  *\r
44  */\r
45 \r
46 #ifndef __HTTPD_H__\r
47 #define __HTTPD_H__\r
48 \r
49 void httpd_init(void);\r
50 void httpd_appcall(void);\r
51 \r
52 /* UIP_APPCALL: the name of the application function. This function\r
53    must return void and take no arguments (i.e., C type "void\r
54    appfunc(void)"). */\r
55 #ifndef UIP_APPCALL\r
56 #define UIP_APPCALL     httpd_appcall\r
57 #endif\r
58 \r
59 struct httpd_state {\r
60   u8_t state; \r
61   u16_t count;\r
62   char *dataptr;\r
63   char *script;\r
64 };\r
65 \r
66 \r
67 /* UIP_APPSTATE_SIZE: The size of the application-specific state\r
68    stored in the uip_conn structure. */\r
69 #ifndef UIP_APPSTATE_SIZE\r
70 #define UIP_APPSTATE_SIZE (sizeof(struct httpd_state))\r
71 #endif\r
72 \r
73 #define FS_STATISTICS 1\r
74 \r
75 extern struct httpd_state *hs;\r
76 \r
77 #endif /* __HTTPD_H__ */\r