]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_LPC1768_IAR/webserver/httpd.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / CORTEX_LPC1768_IAR / webserver / httpd.h
1 /*\r
2  * Copyright (c) 2001-2005, Adam Dunkels.\r
3  * All rights reserved.\r
4  *\r
5  * Redistribution and use in source and binary forms, with or without\r
6  * modification, are permitted provided that the following conditions\r
7  * are met:\r
8  * 1. Redistributions of source code must retain the above copyright\r
9  *    notice, this list of conditions and the following disclaimer.\r
10  * 2. Redistributions in binary form must reproduce the above copyright\r
11  *    notice, this list of conditions and the following disclaimer in the\r
12  *    documentation and/or other materials provided with the distribution.\r
13  * 3. The name of the author may not be used to endorse or promote\r
14  *    products derived from this software without specific prior\r
15  *    written permission.\r
16  *\r
17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS\r
18  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\r
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\r
23  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\r
25  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
26  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
27  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
28  *\r
29  * This file is part of the uIP TCP/IP stack.\r
30  *\r
31  * $Id: httpd.h,v 1.2 2006/06/11 21:46:38 adam Exp $\r
32  *\r
33  */\r
34 \r
35 #ifndef __HTTPD_H__\r
36 #define __HTTPD_H__\r
37 \r
38 #include "psock.h"\r
39 #include "httpd-fs.h"\r
40 \r
41 struct httpd_state {\r
42   unsigned char timer;\r
43   struct psock sin, sout;\r
44   struct pt outputpt, scriptpt;\r
45   char inputbuf[50];\r
46   char filename[20];\r
47   char state;\r
48   struct httpd_fs_file file;\r
49   int len;\r
50   char *scriptptr;\r
51   int scriptlen;\r
52   \r
53   unsigned short count;\r
54 };\r
55 \r
56 void httpd_init(void);\r
57 void httpd_appcall(void);\r
58 \r
59 void httpd_log(char *msg);\r
60 void httpd_log_file(u16_t *requester, char *file);\r
61 \r
62 #endif /* __HTTPD_H__ */\r