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

The file was split into two since it contains a variable declaration.
diff --git a/include/haproxy/capture-t.h b/include/haproxy/capture-t.h
new file mode 100644
index 0000000..ebc7fe8
--- /dev/null
+++ b/include/haproxy/capture-t.h
@@ -0,0 +1,43 @@
+/*
+ * include/haproxy/capture-t.h
+ * This file defines types for captures.
+ *
+ * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation, version 2.1
+ * exclusively.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * 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 _HAPROXY_CAPTURE_T_H
+#define _HAPROXY_CAPTURE_T_H
+
+#include <haproxy/pool-t.h>
+
+struct cap_hdr {
+    struct cap_hdr *next;
+    char *name;				/* header name, case insensitive, NULL if not header */
+    int namelen;			/* length of the header name, to speed-up lookups, 0 if !name */
+    int len;				/* capture length, not including terminal zero */
+    int index;				/* index in the output array */
+    struct pool_head *pool;		/* pool of pre-allocated memory area of (len+1) bytes */
+};
+
+#endif /* _HAPROXY_CAPTURE_T_H */
+
+/*
+ * Local variables:
+ *  c-indent-level: 8
+ *  c-basic-offset: 8
+ * End:
+ */
diff --git a/include/haproxy/capture.h b/include/haproxy/capture.h
new file mode 100644
index 0000000..ba0a6c0
--- /dev/null
+++ b/include/haproxy/capture.h
@@ -0,0 +1,37 @@
+/*
+ * include/haproxy/capture.h
+ * This file defines prototypes for captures.
+ *
+ * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation, version 2.1
+ * exclusively.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * 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 _HAPROXY_CAPTURE_H
+#define _HAPROXY_CAPTURE_H
+
+#include <haproxy/capture-t.h>
+#include <haproxy/pool-t.h>
+
+extern struct pool_head *pool_head_capture;
+
+#endif /* _HAPROXY_CAPTURE_H */
+
+/*
+ * Local variables:
+ *  c-indent-level: 8
+ *  c-basic-offset: 8
+ * End:
+ */
diff --git a/include/types/capture.h b/include/types/capture.h
deleted file mode 100644
index 7849cdd..0000000
--- a/include/types/capture.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
-  include/types/capture.h
-  This file defines everything related to captures.
-
-  Copyright (C) 2000-2007 Willy Tarreau - w@1wt.eu
-  
-  This library is free software; you can redistribute it and/or
-  modify it under the terms of the GNU Lesser General Public
-  License as published by the Free Software Foundation, version 2.1
-  exclusively.
-
-  This library is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-  Lesser General Public License for more details.
-
-  You should have received a copy of the GNU Lesser General Public
-  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_CAPTURE_H
-#define _TYPES_CAPTURE_H
-
-#include <haproxy/api-t.h>
-#include <haproxy/pool-t.h>
-
-struct cap_hdr {
-    struct cap_hdr *next;
-    char *name;				/* header name, case insensitive, NULL if not header */
-    int namelen;			/* length of the header name, to speed-up lookups, 0 if !name */
-    int len;				/* capture length, not including terminal zero */
-    int index;				/* index in the output array */
-    struct pool_head *pool;		/* pool of pre-allocated memory area of (len+1) bytes */
-};
-
-extern struct pool_head *pool_head_capture;
-
-#endif /* _TYPES_CAPTURE_H */
-
-/*
- * Local variables:
- *  c-indent-level: 8
- *  c-basic-offset: 8
- * End:
- */
diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c
index 0fdf5db..d72d83a 100644
--- a/src/cfgparse-listen.c
+++ b/src/cfgparse-listen.c
@@ -14,7 +14,7 @@
 #include <common/cfgparse.h>
 #include <common/uri_auth.h>
 
-#include <types/capture.h>
+#include <haproxy/capture-t.h>
 #include <haproxy/compression-t.h>
 #include <haproxy/http_htx.h>
 #include <types/stats.h>
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 011977a..bf2373b 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -36,6 +36,7 @@
 #include <haproxy/action-t.h>
 #include <haproxy/auth.h>
 #include <haproxy/api.h>
+#include <haproxy/capture.h>
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
 #include <haproxy/dns.h>
@@ -48,7 +49,6 @@
 #include <haproxy/namespace.h>
 #include <haproxy/thread.h>
 
-#include <types/capture.h>
 #include <types/filters.h>
 #include <types/global.h>
 #include <types/obj_type.h>
diff --git a/src/haproxy.c b/src/haproxy.c
index 95c35de..37e1176 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -101,7 +101,7 @@
 #include <haproxy/version.h>
 #include <haproxy/thread.h>
 
-#include <types/capture.h>
+#include <haproxy/capture-t.h>
 #include <types/cli.h>
 #include <types/filters.h>
 #include <types/global.h>
diff --git a/src/http_act.c b/src/http_act.c
index 9355fa0..51bb1a3 100644
--- a/src/http_act.c
+++ b/src/http_act.c
@@ -28,7 +28,7 @@
 #include <common/uri_auth.h>
 #include <haproxy/version.h>
 
-#include <types/capture.h>
+#include <haproxy/capture-t.h>
 #include <types/global.h>
 
 #include <proto/acl.h>
diff --git a/src/http_ana.c b/src/http_ana.c
index 3ad3bcc..da16098 100644
--- a/src/http_ana.c
+++ b/src/http_ana.c
@@ -20,7 +20,7 @@
 #include <haproxy/regex.h>
 #include <common/uri_auth.h>
 
-#include <types/capture.h>
+#include <haproxy/capture-t.h>
 
 #include <proto/acl.h>
 #include <proto/channel.h>
diff --git a/src/http_conv.c b/src/http_conv.c
index e3e9517..da7d53f 100644
--- a/src/http_conv.c
+++ b/src/http_conv.c
@@ -23,7 +23,7 @@
 #include <haproxy/tools.h>
 #include <haproxy/version.h>
 
-#include <types/capture.h>
+#include <haproxy/capture-t.h>
 #include <types/global.h>
 
 #include <haproxy/arg.h>
diff --git a/src/http_rules.c b/src/http_rules.c
index c6bc540..758e619 100644
--- a/src/http_rules.c
+++ b/src/http_rules.c
@@ -25,7 +25,7 @@
 #include <haproxy/tools.h>
 #include <haproxy/version.h>
 
-#include <types/capture.h>
+#include <haproxy/capture-t.h>
 #include <types/global.h>
 
 #include <proto/acl.h>
diff --git a/src/proxy.c b/src/proxy.c
index 45750b7..3f889c2 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -26,7 +26,7 @@
 #include <import/eb32tree.h>
 #include <import/ebistree.h>
 
-#include <types/capture.h>
+#include <haproxy/capture-t.h>
 #include <types/cli.h>
 #include <types/global.h>
 #include <types/obj_type.h>
diff --git a/src/stream.c b/src/stream.c
index b2c71d6..4bd8d51 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -16,6 +16,7 @@
 
 #include <haproxy/action.h>
 #include <haproxy/api.h>
+#include <haproxy/capture.h>
 #include <common/cfgparse.h>
 #include <haproxy/dict.h>
 #include <haproxy/dns.h>
@@ -27,7 +28,6 @@
 #include <haproxy/pool.h>
 
 #include <types/applet.h>
-#include <types/capture.h>
 #include <types/cli.h>
 #include <types/filters.h>
 #include <types/global.h>
diff --git a/src/tcp_rules.c b/src/tcp_rules.c
index 262224d..6cd87ef 100644
--- a/src/tcp_rules.c
+++ b/src/tcp_rules.c
@@ -11,6 +11,7 @@
  */
 #include <haproxy/action.h>
 #include <haproxy/api.h>
+#include <haproxy/capture-t.h>
 #include <common/cfgparse.h>
 #include <haproxy/list.h>
 #include <haproxy/tools.h>
@@ -18,7 +19,6 @@
 #include <haproxy/time.h>
 
 #include <haproxy/arg-t.h>
-#include <types/capture.h>
 #include <types/connection.h>
 #include <types/global.h>