Added incomplete MIDIToneGenerator project.
[pub/USBasp.git] / Projects / Webserver / Lib / HTTPServerApp.h
index 13399b0..47b8108 100644 (file)
@@ -40,6 +40,8 @@
                #include <avr/pgmspace.h>\r
                #include <string.h>\r
                \r
                #include <avr/pgmspace.h>\r
                #include <string.h>\r
                \r
+               #include <LUFA/Version.h>\r
+\r
                #include <uip.h>\r
                #include <ff.h>\r
        \r
                #include <uip.h>\r
                #include <ff.h>\r
        \r
@@ -49,7 +51,6 @@
                {\r
                        WEBSERVER_STATE_OpenRequestedFile, /**< Currently opening requested file */\r
                        WEBSERVER_STATE_SendResponseHeader, /**< Currently sending HTTP response headers to the client */\r
                {\r
                        WEBSERVER_STATE_OpenRequestedFile, /**< Currently opening requested file */\r
                        WEBSERVER_STATE_SendResponseHeader, /**< Currently sending HTTP response headers to the client */\r
-                       WEBSERVER_STATE_SendMIMETypeHeader, /**< Currently sending HTTP MIME type header to the client */\r
                        WEBSERVER_STATE_SendData, /**< Currently sending HTTP page data to the client */\r
                        WEBSERVER_STATE_Closing, /**< Ready to close the connection to the client */\r
                        WEBSERVER_STATE_Closed, /**< Connection closed after all data sent */\r
                        WEBSERVER_STATE_SendData, /**< Currently sending HTTP page data to the client */\r
                        WEBSERVER_STATE_Closing, /**< Ready to close the connection to the client */\r
                        WEBSERVER_STATE_Closed, /**< Connection closed after all data sent */\r
                /** Type define for a MIME type handler. */\r
                typedef struct\r
                {\r
                /** Type define for a MIME type handler. */\r
                typedef struct\r
                {\r
-                       char Extension[4]; /**< 3 or less character file extension */\r
-                       char MIMEType[30]; /**< Appropriate MIME type to send when the extension is encountered */\r
+                       char* Extension; /**< File extension (no leading '.' character) */\r
+                       char* MIMEType;  /**< Appropriate MIME type to send when the extension is encountered */\r
                } MIME_Type_t;\r
        \r
        /* Macros: */\r
                } MIME_Type_t;\r
        \r
        /* Macros: */\r
-               /** TCP listen port for incomming HTTP traffic */\r
+               /** TCP listen port for incoming HTTP traffic */\r
                #define HTTP_SERVER_PORT  80\r
 \r
        /* Function Prototypes: */\r
                #define HTTP_SERVER_PORT  80\r
 \r
        /* Function Prototypes: */\r
@@ -74,7 +75,6 @@
                #if defined(INCLUDE_FROM_HTTPSERVERAPP_C)\r
                        static void HTTPServerApp_OpenRequestedFile(void);\r
                        static void HTTPServerApp_SendResponseHeader(void);\r
                #if defined(INCLUDE_FROM_HTTPSERVERAPP_C)\r
                        static void HTTPServerApp_OpenRequestedFile(void);\r
                        static void HTTPServerApp_SendResponseHeader(void);\r
-                       static void HTTPServerApp_SendMIMETypeHeader(void);\r
                        static void HTTPServerApp_SendData(void);\r
                #endif\r
                \r
                        static void HTTPServerApp_SendData(void);\r
                #endif\r
                \r