The file was split into two since it contains a variable declaration.
--- /dev/null
+/*
+ * 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:
+ */
--- /dev/null
+/*
+ * 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:
+ */
+++ /dev/null
-/*
- 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:
- */
#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>
#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>
#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>
#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>
#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>
#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>
#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>
#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>
#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>
#include <haproxy/action.h>
#include <haproxy/api.h>
+#include <haproxy/capture.h>
#include <common/cfgparse.h>
#include <haproxy/dict.h>
#include <haproxy/dns.h>
#include <haproxy/pool.h>
#include <types/applet.h>
-#include <types/capture.h>
#include <types/cli.h>
#include <types/filters.h>
#include <types/global.h>
*/
#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>
#include <haproxy/time.h>
#include <haproxy/arg-t.h>
-#include <types/capture.h>
#include <types/connection.h>
#include <types/global.h>