From: Willy Tarreau Date: Thu, 4 Jun 2020 09:18:28 +0000 (+0200) Subject: REORG: include: move capture.h to haproxy/capture{,-t}.h X-Git-Tag: v2.2-dev9~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=278161c1b8f65f0216a8ecbda7b9dd40c7cd886c;p=thirdparty%2Fhaproxy.git 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 0000000000..ebc7fe83f5 --- /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 + +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 0000000000..ba0a6c07b6 --- /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 +#include + +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 7849cdd74c..0000000000 --- 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 -#include - -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 0fdf5dbc68..d72d83af9a 100644 --- a/src/cfgparse-listen.c +++ b/src/cfgparse-listen.c @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/cfgparse.c b/src/cfgparse.c index 011977a0a9..bf2373bf4e 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -48,7 +49,6 @@ #include #include -#include #include #include #include diff --git a/src/haproxy.c b/src/haproxy.c index 95c35de753..37e1176599 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -101,7 +101,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/http_act.c b/src/http_act.c index 9355fa0133..51bb1a3485 100644 --- a/src/http_act.c +++ b/src/http_act.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include diff --git a/src/http_ana.c b/src/http_ana.c index 3ad3bcca9e..da160980be 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include diff --git a/src/http_conv.c b/src/http_conv.c index e3e9517707..da7d53f934 100644 --- a/src/http_conv.c +++ b/src/http_conv.c @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include diff --git a/src/http_rules.c b/src/http_rules.c index c6bc54005f..758e6192ac 100644 --- a/src/http_rules.c +++ b/src/http_rules.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include diff --git a/src/proxy.c b/src/proxy.c index 45750b723b..3f889c264c 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/stream.c b/src/stream.c index b2c71d6ea2..4bd8d517ba 100644 --- a/src/stream.c +++ b/src/stream.c @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -27,7 +28,6 @@ #include #include -#include #include #include #include diff --git a/src/tcp_rules.c b/src/tcp_rules.c index 262224d9b2..6cd87efa07 100644 --- a/src/tcp_rules.c +++ b/src/tcp_rules.c @@ -11,6 +11,7 @@ */ #include #include +#include #include #include #include @@ -18,7 +19,6 @@ #include #include -#include #include #include