Exclude FATFs from the Webserver project documentation. Rename the functions in the...
[pub/lufa.git] / Projects / Webserver / Lib / HTTPServerApp.c
index 4c12271..1836688 100644 (file)
@@ -79,7 +79,7 @@ FATFS DiskFATState;
 \r
 \r
 /** Initialization function for the simple HTTP webserver. */\r
-void WebserverApp_Init(void)\r
+void HTTPServerApp_Init(void)\r
 {\r
        /* Listen on port 80 for HTTP connections from hosts */\r
        uip_listen(HTONS(HTTP_SERVER_PORT));\r
@@ -91,7 +91,7 @@ void WebserverApp_Init(void)
 /** uIP stack application callback for the simple HTTP webserver. This function must be called each time the\r
  *  TCP/IP stack needs a TCP packet to be processed.\r
  */\r
-void WebserverApp_Callback(void)\r
+void HTTPServerApp_Callback(void)\r
 {\r
        uip_tcp_appstate_t* const AppState = &uip_conn->appstate;\r
 \r
@@ -130,16 +130,16 @@ void WebserverApp_Callback(void)
                switch (AppState->CurrentState)\r
                {\r
                        case WEBSERVER_STATE_OpenRequestedFile:\r
-                               Webserver_OpenRequestedFile();\r
+                               HTTPServerApp_OpenRequestedFile();\r
                                break;\r
                        case WEBSERVER_STATE_SendResponseHeader:\r
-                               Webserver_SendResponseHeader();\r
+                               HTTPServerApp_SendResponseHeader();\r
                                break;\r
                        case WEBSERVER_STATE_SendMIMETypeHeader:\r
-                               Webserver_SendMIMETypeHeader(); \r
+                               HTTPServerApp_SendMIMETypeHeader();     \r
                                break;\r
                        case WEBSERVER_STATE_SendData:\r
-                               Webserver_SendData();\r
+                               HTTPServerApp_SendData();\r
                                break;\r
                        case WEBSERVER_STATE_Closing:\r
                                uip_close();\r
@@ -153,7 +153,7 @@ void WebserverApp_Callback(void)
 /** HTTP Server State handler for the Request Process state. This state manages the processing of incomming HTTP\r
  *  GET requests to the server from the receiving HTTP client.\r
  */\r
-static void Webserver_OpenRequestedFile(void)\r
+static void HTTPServerApp_OpenRequestedFile(void)\r
 {\r
        uip_tcp_appstate_t* const AppState    = &uip_conn->appstate;\r
        char*               const AppData     = (char*)uip_appdata;\r
@@ -193,7 +193,7 @@ static void Webserver_OpenRequestedFile(void)
 /** HTTP Server State handler for the HTTP Response Header Send state. This state manages the transmission of\r
  *  the HTTP response header to the receiving HTTP client.\r
  */\r
-static void Webserver_SendResponseHeader(void)\r
+static void HTTPServerApp_SendResponseHeader(void)\r
 {\r
        uip_tcp_appstate_t* const AppState    = &uip_conn->appstate;\r
        char*               const AppData     = (char*)uip_appdata;\r
@@ -222,7 +222,7 @@ static void Webserver_SendResponseHeader(void)
 /** HTTP Server State handler for the MIME Header Send state. This state manages the transmission of the file\r
  *  MIME type header for the requested file to the receiving HTTP client.\r
  */\r
-static void Webserver_SendMIMETypeHeader(void)\r
+static void HTTPServerApp_SendMIMETypeHeader(void)\r
 {\r
        uip_tcp_appstate_t* const AppState    = &uip_conn->appstate;\r
        char*               const AppData     = (char*)uip_appdata;\r
@@ -267,7 +267,7 @@ static void Webserver_SendMIMETypeHeader(void)
 /** HTTP Server State handler for the Data Send state. This state manages the transmission of file chunks\r
  *  to the receiving HTTP client.\r
  */\r
-static void Webserver_SendData(void)\r
+static void HTTPServerApp_SendData(void)\r
 {\r
        uip_tcp_appstate_t* const AppState    = &uip_conn->appstate;\r
        char*               const AppData     = (char*)uip_appdata;\r