Fix up the incomplete Webserver project so that it integrates with the uIP stack...
[pub/lufa.git] / Projects / Incomplete / Webserver / Lib / uip / conf / apps-conf.h
index 60a7c9e..00919f2 100644 (file)
@@ -1,15 +1,20 @@
 #ifndef __APPS_CONF_H__\r
 #define __APPS_CONF_H__\r
 \r
-//Here we include the header file for the application(s) we use in our project.\r
-\r
-//#include "smtp.h"\r
-//#include "hello-world.h"\r
-//#include "simple-httpd.h"\r
-//#include "telnetd.h"\r
-//#include "webserver.h"\r
-//#include "dhcpc.h"\r
-//#include "resolv.h"\r
-//#include "webclient.h"\r
+       enum Webserver_States_t\r
+       {\r
+               WEBSERVER_STATE_SendHeaders,\r
+               WEBSERVER_STATE_SendData,\r
+               WEBSERVER_STATE_Closed,\r
+       };\r
+\r
+       typedef struct\r
+       {\r
+               uint8_t CurrentState;\r
+               char*   SendPos;\r
+       } uip_tcp_appstate_t;\r
+\r
+       #define UIP_APPCALL     WebserverAppCallback\r
+       void UIP_APPCALL(void);\r
 \r
 #endif /*__APPS_CONF_H__*/\r