X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/bb1a036f097602a70ce219915db28dea616b76a8..8154331da60ac08b0e2b09ca67008ec4a8c7698b:/Projects/Webserver/Lib/HTTPServerApp.h?ds=sidebyside diff --git a/Projects/Webserver/Lib/HTTPServerApp.h b/Projects/Webserver/Lib/HTTPServerApp.h index 91956ce07..d212cf250 100644 --- a/Projects/Webserver/Lib/HTTPServerApp.h +++ b/Projects/Webserver/Lib/HTTPServerApp.h @@ -40,6 +40,8 @@ #include #include + #include + #include #include @@ -47,7 +49,7 @@ /** States for each HTTP connection to the webserver. */ enum Webserver_States_t { - WEBSERVER_STATE_OpenRequestedFile, /** Currently opening requested file */ + WEBSERVER_STATE_OpenRequestedFile, /**< Currently opening requested file */ WEBSERVER_STATE_SendResponseHeader, /**< Currently sending HTTP response headers to the client */ WEBSERVER_STATE_SendMIMETypeHeader, /**< Currently sending HTTP MIME type header to the client */ WEBSERVER_STATE_SendData, /**< Currently sending HTTP page data to the client */ @@ -59,23 +61,23 @@ /** Type define for a MIME type handler. */ typedef struct { - char Extension[4]; /**< 3 or less character file extension */ - char MIMEType[30]; /**< Appropriate MIME type to send when the extension is encountered */ + char* Extension; /**< File extension (no leading '.' character) */ + char* MIMEType; /**< Appropriate MIME type to send when the extension is encountered */ } MIME_Type_t; /* Macros: */ - /** TCP listen port for incomming HTTP traffic */ + /** TCP listen port for incoming HTTP traffic */ #define HTTP_SERVER_PORT 80 /* Function Prototypes: */ - void WebserverApp_Init(void); - void WebserverApp_Callback(void); + void HTTPServerApp_Init(void); + void HTTPServerApp_Callback(void); #if defined(INCLUDE_FROM_HTTPSERVERAPP_C) - static void Webserver_OpenRequestedFile(void); - static void Webserver_SendResponseHeader(void); - static void Webserver_SendMIMETypeHeader(void); - static void Webserver_SendData(void); + static void HTTPServerApp_OpenRequestedFile(void); + static void HTTPServerApp_SendResponseHeader(void); + static void HTTPServerApp_SendMIMETypeHeader(void); + static void HTTPServerApp_SendData(void); #endif #endif