diff --git a/include/haproxy/capture-t.h b/include/haproxy/capture-t.h new file mode 100644 index 000000000..ebc7fe83f --- /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 000000000..ba0a6c07b --- /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 7849cdd74..000000000 --- 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 0fdf5dbc6..d72d83af9 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 011977a0a..bf2373bf4 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 95c35de75..37e117659 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 9355fa013..51bb1a348 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 3ad3bcca9..da160980b 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 e3e951770..da7d53f93 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 c6bc54005..758e6192a 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 45750b723..3f889c264 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 b2c71d6ea..4bd8d517b 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 262224d9b..6cd87efa0 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