[MEDIUM] http: split request waiter from request processor

We want to split several steps in HTTP processing so that
we can call individual analysers depending on what processing
we want to perform. The first step consists in splitting the
part that waits for a request from the rest.
diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h
index 175eb04..8620bf4 100644
--- a/include/proto/proto_http.h
+++ b/include/proto/proto_http.h
@@ -61,6 +61,7 @@
 int process_cli(struct session *t);
 int process_srv_data(struct session *t);
 int process_srv_conn(struct session *t);
+int http_wait_for_request(struct session *s, struct buffer *req);
 int http_process_request(struct session *t, struct buffer *req);
 int http_process_tarpit(struct session *s, struct buffer *req);
 int http_process_request_body(struct session *s, struct buffer *req);
diff --git a/include/types/buffers.h b/include/types/buffers.h
index faad019..a895477 100644
--- a/include/types/buffers.h
+++ b/include/types/buffers.h
@@ -111,6 +111,7 @@
 #define AN_REQ_HTTP_TARPIT      0x00000008  /* wait for end of HTTP tarpit */
 #define AN_RTR_HTTP_HDR         0x00000010  /* inspect HTTP response headers */
 #define AN_REQ_UNIX_STATS       0x00000020  /* process unix stats socket request */
+#define AN_REQ_WAIT_HTTP        0x00000040  /* wait for an HTTP request */
 
 /* describes a chunk of string */
 struct chunk {