Add TCP retransmission support to the HTTP webserver in the Webserver project, so...
[pub/USBasp.git] / Projects / Webserver / Lib / uip / conf / apps-conf.h
1 #ifndef __APPS_CONF_H__
2 #define __APPS_CONF_H__
3
4 #include <ff.h>
5
6 typedef struct
7 {
8 uint8_t PrevState;
9 uint8_t CurrentState;
10
11 FIL FileHandle;
12 char FileName[13];
13 bool FileOpen;
14 uint32_t CurrentFilePos;
15 } uip_tcp_appstate_t;
16
17 typedef struct
18 {
19 uint8_t CurrentState;
20 struct uip_udp_conn* Connection;
21
22 struct
23 {
24 uint8_t AllocatedIP[4];
25 uint8_t Netmask[4];
26 uint8_t GatewayIP[4];
27 uint8_t ServerIP[4];
28 } DHCPOffer_Data;
29 } uip_udp_appstate_t;
30
31 #define UIP_APPCALL WebserverApp_Callback
32 #define UIP_UDP_APPCALL DHCPApp_Callback
33 void UIP_APPCALL(void);
34 void UIP_UDP_APPCALL(void);
35
36 #endif /*__APPS_CONF_H__*/