REORG: include: move filters.h to haproxy/filters{,-t}.h

Just a minor change, moved the macro definitions upwards. A few caller
files were updated since they didn't need to include it.
diff --git a/include/types/filters.h b/include/haproxy/filters-t.h
similarity index 98%
rename from include/types/filters.h
rename to include/haproxy/filters-t.h
index 2e06b83..a158d22 100644
--- a/include/types/filters.h
+++ b/include/haproxy/filters-t.h
@@ -1,5 +1,5 @@
 /*
- * include/types/filteers.h
+ * include/haproxy/filteers-t.h
  * This file defines everything related to stream filters.
  *
  * Copyright (C) 2015 Qualys Inc., Christopher Faulet <cfaulet@qualys.com>
@@ -18,11 +18,23 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
-#ifndef _TYPES_FILTERS_H
-#define _TYPES_FILTERS_H
+#ifndef _HAPROXY_FILTERS_T_H
+#define _HAPROXY_FILTERS_T_H
 
-#include <haproxy/api-t.h>
 #include <haproxy/list-t.h>
+#include <haproxy/api-t.h>
+
+/* Flags set on a filter config */
+#define FLT_CFG_FL_HTX    0x00000001  /* The filter can filter HTX streams */
+
+/* Flags set on a filter instance */
+#define FLT_FL_IS_BACKEND_FILTER  0x0001 /* The filter is a backend filter */
+#define FLT_FL_IS_REQ_DATA_FILTER 0x0002 /* The filter will parse data on the request channel */
+#define FLT_FL_IS_RSP_DATA_FILTER 0x0004 /* The filter will parse data on the response channel */
+
+/* Flags set on the stream, common to all filters attached to its stream */
+#define STRM_FLT_FL_HAS_FILTERS          0x0001 /* The stream has at least one filter */
+
 
 struct http_msg;
 struct proxy;
@@ -189,17 +201,6 @@
 				    unsigned int offset, unsigned int len);
 };
 
-/* Flags set on a filter config */
-#define FLT_CFG_FL_HTX    0x00000001  /* The filter can filter HTX streams */
-
-/* Flags set on a filter instance */
-#define FLT_FL_IS_BACKEND_FILTER  0x0001 /* The filter is a backend filter */
-#define FLT_FL_IS_REQ_DATA_FILTER 0x0002 /* The filter will parse data on the request channel */
-#define FLT_FL_IS_RSP_DATA_FILTER 0x0004 /* The filter will parse data on the response channel */
-
-/* Flags set on the stream, common to all filters attached to its stream */
-#define STRM_FLT_FL_HAS_FILTERS          0x0001 /* The stream has at least one filter */
-
 /*
  * Structure representing the filter configuration, attached to a proxy and
  * accessible from a filter when instantiated in a stream
@@ -247,7 +248,7 @@
 	unsigned long long offset[2];
 };
 
-#endif /* _TYPES_FILTERS_H */
+#endif /* _HAPROXY_FILTERS_T_H */
 
 /*
  * Local variables:
diff --git a/include/proto/filters.h b/include/haproxy/filters.h
similarity index 97%
rename from include/proto/filters.h
rename to include/haproxy/filters.h
index 4b8876e..b9f24bf 100644
--- a/include/proto/filters.h
+++ b/include/haproxy/filters.h
@@ -1,5 +1,5 @@
 /*
- * include/proto/filters.h
+ * include/haproxy/filters.h
  * This file defines function prototypes for stream filters management.
  *
  * Copyright (C) 2015 Qualys Inc., Christopher Faulet <cfaulet@qualys.com>
@@ -18,11 +18,11 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
-#ifndef _PROTO_FILTERS_H
-#define _PROTO_FILTERS_H
+#ifndef _HAPROXY_FILTERS_H
+#define _HAPROXY_FILTERS_H
 
 #include <haproxy/channel.h>
-#include <types/filters.h>
+#include <haproxy/filters-t.h>
 #include <haproxy/http_ana-t.h>
 #include <types/proxy.h>
 #include <types/stream.h>
@@ -186,5 +186,4 @@
 	}
 }
 
-
-#endif /* _PROTO_FILTERS_H */
+#endif /* _HAPROXY_FILTERS_H */
diff --git a/include/types/fcgi-app.h b/include/types/fcgi-app.h
index b314d69..4d1581b 100644
--- a/include/types/fcgi-app.h
+++ b/include/types/fcgi-app.h
@@ -26,13 +26,12 @@
 #include <haproxy/api-t.h>
 #include <import/ist.h>
 #include <haproxy/fcgi.h>
+#include <haproxy/filters-t.h>
 #include <haproxy/list-t.h>
 #include <haproxy/regex-t.h>
 
 #include <import/ebistree.h>
 
-#include <types/filters.h>
-
 #define FCGI_APP_FL_KEEP_CONN     0x00000001 /* Keep the connection alive */
 #define FCGI_APP_FL_GET_VALUES    0x00000002 /* Retrieve FCGI variables on connection establishment */
 #define FCGI_APP_FL_MPXS_CONNS    0x00000004 /* FCGI APP supports connection multiplexing */
diff --git a/include/types/proxy.h b/include/types/proxy.h
index 53d9e3c..b86df8d 100644
--- a/include/types/proxy.h
+++ b/include/types/proxy.h
@@ -42,7 +42,6 @@
 
 #include <haproxy/acl-t.h>
 #include <types/backend.h>
-#include <types/filters.h>
 #include <haproxy/freq_ctr-t.h>
 #include <types/log.h>
 #include <haproxy/sample-t.h>
diff --git a/include/types/spoe.h b/include/types/spoe.h
index c7ed45d..1538a72 100644
--- a/include/types/spoe.h
+++ b/include/types/spoe.h
@@ -25,10 +25,10 @@
 #include <sys/time.h>
 
 #include <haproxy/dynbuf-t.h>
+#include <haproxy/filters-t.h>
 #include <haproxy/list-t.h>
 #include <haproxy/thread.h>
 
-#include <types/filters.h>
 #include <haproxy/freq_ctr-t.h>
 #include <types/log.h>
 #include <types/proxy.h>
diff --git a/include/types/stream.h b/include/types/stream.h
index 99dfd02..41b800c 100644
--- a/include/types/stream.h
+++ b/include/types/stream.h
@@ -31,6 +31,7 @@
 #include <haproxy/api-t.h>
 #include <haproxy/channel-t.h>
 #include <haproxy/dynbuf-t.h>
+#include <haproxy/filters-t.h>
 #include <haproxy/hlua-t.h>
 #include <haproxy/http_ana-t.h>
 #include <haproxy/list-t.h>
@@ -39,7 +40,6 @@
 #include <haproxy/stream_interface-t.h>
 #include <haproxy/vars-t.h>
 
-#include <types/filters.h>
 #include <types/proxy.h>
 #include <types/queue.h>
 #include <types/server.h>