Add DHCP server to the Webserver demo for automatic network configuration. Correct...
[pub/USBasp.git] / Projects / Webserver / Lib / uip / conf / apps-conf.h
1 #ifndef __APPS_CONF_H__
2 #define __APPS_CONF_H__
3
4 typedef struct
5 {
6 uint8_t CurrentState;
7 char* SendPos;
8 } uip_tcp_appstate_t;
9
10 typedef struct
11 {
12 uint8_t CurrentState;
13 struct uip_udp_conn* Connection;
14
15 struct
16 {
17 uint8_t AllocatedIP[4];
18 uint8_t Netmask[4];
19 uint8_t GatewayIP[4];
20 uint8_t ServerIP[4];
21 } DHCPOffer_Data;
22 } uip_udp_appstate_t;
23
24 #define UIP_APPCALL WebserverApp_Callback
25 #define UIP_UDP_APPCALL DHCPApp_Callback
26 void UIP_APPCALL(void);
27 void UIP_UDP_APPCALL(void);
28
29 #endif /*__APPS_CONF_H__*/