diff options
author | Jan Kneschke <jan@kneschke.de> | 2006-01-04 23:28:09 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2006-01-04 23:28:09 +0000 |
commit | 874ca13a5555f9a6678d22c73582f5672ce6ea35 (patch) | |
tree | c5d34ca96591c81478ddd5cf7f7e05204ca1372d | |
parent | dd595edc865a6457ddc2e60239d81070a56710af (diff) | |
download | lighttpd-git-874ca13a5555f9a6678d22c73582f5672ce6ea35.tar.gz |
cosmetics and added a comment about the order in the STATE enum
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@917 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/base.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -289,7 +289,21 @@ typedef struct { #endif } specific_config; -typedef enum { CON_STATE_CONNECT, CON_STATE_REQUEST_START, CON_STATE_READ, CON_STATE_REQUEST_END, CON_STATE_READ_POST, CON_STATE_HANDLE_REQUEST, CON_STATE_RESPONSE_START, CON_STATE_WRITE, CON_STATE_RESPONSE_END, CON_STATE_ERROR, CON_STATE_CLOSE } connection_state_t; +/* the order of the items should be the same as they are processed + * read before write as we use this later */ +typedef enum { + CON_STATE_CONNECT, + CON_STATE_REQUEST_START, + CON_STATE_READ, + CON_STATE_REQUEST_END, + CON_STATE_READ_POST, + CON_STATE_HANDLE_REQUEST, + CON_STATE_RESPONSE_START, + CON_STATE_WRITE, + CON_STATE_RESPONSE_END, + CON_STATE_ERROR, + CON_STATE_CLOSE +} connection_state_t; typedef enum { COND_RESULT_UNSET, COND_RESULT_FALSE, COND_RESULT_TRUE } cond_result_t; typedef struct { |