X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/1aeb5056d6943331ee2d11807bcc0a6480ad1ca0..a960e4b3b2ae72c6c3573fb690a1b9cde1642bc0:/Projects/Webserver/Lib/uip/conf/apps-conf.h?ds=inline diff --git a/Projects/Webserver/Lib/uip/conf/apps-conf.h b/Projects/Webserver/Lib/uip/conf/apps-conf.h index 22bab81bf..fc9727dcd 100644 --- a/Projects/Webserver/Lib/uip/conf/apps-conf.h +++ b/Projects/Webserver/Lib/uip/conf/apps-conf.h @@ -1,20 +1,29 @@ #ifndef __APPS_CONF_H__ #define __APPS_CONF_H__ - enum Webserver_States_t - { - WEBSERVER_STATE_SendHeaders, - WEBSERVER_STATE_SendData, - WEBSERVER_STATE_Closed, - }; - typedef struct { uint8_t CurrentState; char* SendPos; } uip_tcp_appstate_t; + typedef struct + { + uint8_t CurrentState; + struct uip_udp_conn* Connection; + + struct + { + uint8_t AllocatedIP[4]; + uint8_t Netmask[4]; + uint8_t GatewayIP[4]; + uint8_t ServerIP[4]; + } DHCPOffer_Data; + } uip_udp_appstate_t; + #define UIP_APPCALL WebserverApp_Callback + #define UIP_UDP_APPCALL DHCPApp_Callback void UIP_APPCALL(void); + void UIP_UDP_APPCALL(void); #endif /*__APPS_CONF_H__*/