diff options
author | Dean Camera <[email protected]> | 2010-01-31 14:18:03 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-01-31 14:18:03 +0000 |
commit | bb1a036f097602a70ce219915db28dea616b76a8 (patch) | |
tree | 550409f4053fb7bcb4f7cbfebf02d69545447d7a /Projects/Webserver/Lib/HTTPServerApp.h | |
parent | 331e8dece66e632ef3f91b052674948fd74e62a1 (diff) | |
download | qmk_firmware-bb1a036f097602a70ce219915db28dea616b76a8.tar.gz qmk_firmware-bb1a036f097602a70ce219915db28dea616b76a8.zip |
Clean up HTTP webserver code in the Webserver project, so that it follows the uIP application structure guidelines and uses cleaner state machine based code.
Diffstat (limited to 'Projects/Webserver/Lib/HTTPServerApp.h')
-rw-r--r-- | Projects/Webserver/Lib/HTTPServerApp.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Projects/Webserver/Lib/HTTPServerApp.h b/Projects/Webserver/Lib/HTTPServerApp.h index 1ab64b323c..91956ce072 100644 --- a/Projects/Webserver/Lib/HTTPServerApp.h +++ b/Projects/Webserver/Lib/HTTPServerApp.h @@ -50,8 +50,9 @@ 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 */
- WEBSERVER_STATE_Closed, /**< Connection closed after all data sent */
+ WEBSERVER_STATE_SendData, /**< Currently sending HTTP page data to the client */
+ WEBSERVER_STATE_Closing, /**< Ready to close the connection to the client */
+ WEBSERVER_STATE_Closed, /**< Connection closed after all data sent */
};
/* Type Defines: */
@@ -70,4 +71,11 @@ void WebserverApp_Init(void);
void WebserverApp_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);
+ #endif
+
#endif
|