summaryrefslogtreecommitdiffhomepage
path: root/src/conns.h
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-11-17 00:35:55 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2020-11-17 00:35:55 +0100
commiteb02bd3f2b9e2c7803c52b66e042dd6a1c8e1e4d (patch)
tree6ad0e283863f36872d6e72606f04d0fe0fbf1bea /src/conns.h
parent064d391854f78ebb4fa311638dd0841227dc60b4 (diff)
parent679b683331771d2ed196abf46ee7c2278f0f687f (diff)
Merge branch 'upgrade_conn'HEADmaster
Conflicts: src/conns.c src/reqs.c
Diffstat (limited to 'src/conns.h')
-rw-r--r--src/conns.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/conns.h b/src/conns.h
index 36082f2..7e1919c 100644
--- a/src/conns.h
+++ b/src/conns.h
@@ -24,6 +24,12 @@
#include "main.h"
#include "hsearch.h"
+enum connect_method_e {
+ CM_FALSE = 0,
+ CM_TRUE = 1,
+ CM_UPGRADE = 2,
+};
+
/*
* Connection Definition
*/
@@ -37,8 +43,9 @@ struct conn_s {
/* The request line (first line) from the client */
char *request_line;
+ enum connect_method_e connect_method;
+
/* Booleans */
- unsigned int connect_method;
unsigned int show_stats;
/*