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

A few includes had to be added, namely list-t.h in the type file and
types/proxy.h in the proto file. actions.h was including http-htx.h
but didn't need it so it was dropped.
This commit is contained in:
Willy Tarreau 2020-06-04 09:08:41 +02:00
parent c6fe884c74
commit 87735330d1
26 changed files with 36 additions and 36 deletions

View File

@ -16,6 +16,7 @@
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/pool.h>
#include <haproxy/list.h>
@ -28,7 +29,6 @@
#include <haproxy/compression.h>
#include <proto/frontend.h>
#include <proto/listener.h>
#include <proto/http_htx.h>
#include <haproxy/pipe.h>
#include <proto/proxy.h>
#include <proto/sample.h>

View File

@ -1,5 +1,5 @@
/*
* include/types/http_htx.h
* include/haproxy/http_htx-t.h
* This file defines everything related to HTTP manipulation using the internal
* representation.
*
@ -20,15 +20,16 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _TYPES_HTTP_HTX_H
#define _TYPES_HTTP_HTX_H
#ifndef _HAPROXY_HTTP_HTX_T_H
#define _HAPROXY_HTTP_HTX_T_H
#include <import/ebistree.h>
#include <haproxy/buf-t.h>
#include <import/ist.h>
#include <haproxy/http-t.h>
#include <haproxy/htx-t.h>
#include <import/ist.h>
#include <haproxy/list-t.h>
/* Context used to find/remove an HTTP header. */
struct http_hdr_ctx {
@ -92,4 +93,4 @@ struct http_errors {
struct list list; /* http-errors list */
};
#endif /* _TYPES_HTTP_HTX_H */
#endif /* _HAPROXY_HTTP_HTX_T_H */

View File

@ -1,5 +1,5 @@
/*
* include/types/http_htx.h
* include/haproxy/http_htx-t.h
* This file defines function prototypes for HTTP manipulation using the
* internal representation.
*
@ -20,14 +20,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _PROTO_HTTP_HTX_H
#define _PROTO_HTTP_HTX_H
#ifndef _HAPROXY_HTTP_HTX_H
#define _HAPROXY_HTTP_HTX_H
#include <haproxy/buf.h>
#include <import/ist.h>
#include <haproxy/buf-t.h>
#include <haproxy/http_htx-t.h>
#include <haproxy/regex-t.h>
#include <types/http_htx.h>
#include <types/proxy.h>
extern struct buffer http_err_chunks[HTTP_ERR_SIZE];
extern struct http_reply http_err_replies[HTTP_ERR_SIZE];
@ -73,4 +73,4 @@ struct buffer *http_parse_errorloc(int errloc, int status, const char *url, char
int proxy_dup_default_conf_errors(struct proxy *curpx, struct proxy *defpx, char **errmsg);
void proxy_release_conf_errors(struct proxy *px);
#endif /* _PROTO_HTTP_HTX_H */
#endif /* _HAPROXY_HTTP_HTX_H */

View File

@ -26,7 +26,6 @@
#include <types/applet.h>
#include <types/stick_table.h>
#include <types/http_htx.h>
enum act_from {
ACT_F_TCP_REQ_CON, /* tcp-request connection */

View File

@ -26,7 +26,7 @@
#include <haproxy/http-t.h>
#include <types/channel.h>
#include <types/http_htx.h>
#include <haproxy/http_htx-t.h>
/* These are the flags that are found in txn->flags */

View File

@ -5,11 +5,11 @@
#include <haproxy/chunk.h>
#include <haproxy/buf-t.h>
#include <haproxy/errors.h>
#include <haproxy/http_htx.h>
#include <haproxy/thread.h>
#include <types/global.h>
#include <proto/arg.h>
#include <proto/http_fetch.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/sample.h>

View File

@ -22,6 +22,7 @@
#include <haproxy/api.h>
#include <haproxy/hash.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
@ -35,7 +36,6 @@
#include <proto/channel.h>
#include <proto/checks.h>
#include <proto/frontend.h>
#include <proto/http_htx.h>
#include <proto/lb_chash.h>
#include <proto/lb_fas.h>
#include <proto/lb_fwlc.h>

View File

@ -11,6 +11,7 @@
*/
#include <haproxy/api.h>
#include <haproxy/http_htx.h>
#include <haproxy/shctx.h>
#include <import/eb32tree.h>
#include <import/sha1.h>
@ -23,7 +24,6 @@
#include <proto/channel.h>
#include <proto/cli.h>
#include <proto/proxy.h>
#include <proto/http_htx.h>
#include <proto/filters.h>
#include <proto/http_rules.h>
#include <proto/http_ana.h>

View File

@ -16,12 +16,12 @@
#include <types/capture.h>
#include <haproxy/compression-t.h>
#include <haproxy/http_htx.h>
#include <types/stats.h>
#include <proto/acl.h>
#include <proto/checks.h>
#include <proto/connection.h>
#include <proto/http_htx.h>
#include <proto/http_rules.h>
#include <proto/listener.h>
#include <haproxy/protocol.h>

View File

@ -40,6 +40,7 @@
#include <haproxy/time.h>
#include <haproxy/thread.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/h1.h>
#include <haproxy/htx.h>
@ -53,7 +54,6 @@
#include <proto/checks.h>
#include <proto/stats.h>
#include <haproxy/fd.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/mux_pt.h>
#include <proto/queue.h>

View File

@ -4,10 +4,10 @@
#include <common/cfgparse.h>
#include <haproxy/errors.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <types/global.h>
#include <proto/arg.h>
#include <proto/http_fetch.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/sample.h>

View File

@ -14,6 +14,7 @@
#include <haproxy/chunk.h>
#include <common/cfgparse.h>
#include <haproxy/errors.h>
#include <haproxy/http_htx.h>
#include <haproxy/regex.h>
#include <haproxy/tools.h>
@ -23,7 +24,6 @@
#include <proto/fcgi-app.h>
#include <proto/filters.h>
#include <proto/http_fetch.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/proxy.h>
#include <proto/sample.h>

View File

@ -14,6 +14,7 @@
#include <haproxy/buf-t.h>
#include <common/cfgparse.h>
#include <haproxy/errors.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/namespace.h>
#include <haproxy/tools.h>
@ -24,7 +25,6 @@
#include <haproxy/compression.h>
#include <proto/filters.h>
#include <proto/flt_http_comp.h>
#include <proto/http_htx.h>
#include <proto/http_ana.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>

View File

@ -14,6 +14,7 @@
#include <haproxy/compression.h>
#include <haproxy/dynbuf.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <common/cfgparse.h>
#include <haproxy/htx.h>
#include <haproxy/list.h>
@ -24,7 +25,6 @@
#include <types/sample.h>
#include <proto/filters.h>
#include <proto/http_htx.h>
#include <proto/http_ana.h>
#include <proto/sample.h>
#include <proto/stream.h>

View File

@ -13,6 +13,7 @@
#include <ctype.h>
#include <haproxy/api.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/tools.h>
#include <haproxy/time.h>
@ -24,7 +25,6 @@
#include <types/stream.h>
#include <proto/filters.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/stream.h>

View File

@ -25,6 +25,7 @@
#include <import/ebpttree.h>
#include <common/cfgparse.h>
#include <haproxy/http_htx.h>
#include <haproxy/thread.h>
#include <haproxy/regex.h>
#include <haproxy/xref.h>
@ -45,7 +46,6 @@
#include <proto/hlua.h>
#include <proto/hlua_fcn.h>
#include <proto/http_fetch.h>
#include <proto/http_htx.h>
#include <proto/http_rules.h>
#include <proto/map.h>
#include <proto/obj_type.h>

View File

@ -20,6 +20,7 @@
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/pool.h>
#include <haproxy/regex.h>
#include <haproxy/tools.h>
@ -33,7 +34,6 @@
#include <proto/arg.h>
#include <proto/action.h>
#include <proto/http_rules.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/pattern.h>

View File

@ -13,6 +13,7 @@
#include <haproxy/api.h>
#include <haproxy/base64.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/net_helper.h>
#include <haproxy/regex.h>
@ -26,7 +27,6 @@
#include <proto/checks.h>
#include <proto/connection.h>
#include <proto/filters.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>

View File

@ -22,6 +22,7 @@
#include <haproxy/h1.h>
#include <haproxy/h1_htx.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/pool.h>
#include <haproxy/tools.h>
@ -34,7 +35,6 @@
#include <proto/channel.h>
#include <proto/connection.h>
#include <proto/http_fetch.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/obj_type.h>
#include <proto/http_ana.h>

View File

@ -21,10 +21,10 @@
#include <common/cfgparse.h>
#include <haproxy/h1.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <proto/arg.h>
#include <proto/http_htx.h>
#include <proto/http_fetch.h>
#include <proto/sample.h>

View File

@ -15,6 +15,7 @@
#include <haproxy/fcgi.h>
#include <haproxy/h1.h>
#include <haproxy/h1_htx.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <import/ist.h>
#include <haproxy/list.h>
@ -26,7 +27,6 @@
#include <proto/connection.h>
#include <proto/fcgi-app.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/session.h>
#include <proto/ssl_sock.h>

View File

@ -24,7 +24,7 @@
#include <types/session.h>
#include <proto/connection.h>
#include <proto/http_htx.h>
#include <haproxy/http_htx.h>
#include <proto/log.h>
#include <proto/session.h>
#include <proto/stream.h>

View File

@ -18,10 +18,10 @@
#include <haproxy/hpack-dec.h>
#include <haproxy/hpack-enc.h>
#include <haproxy/hpack-tbl.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/net_helper.h>
#include <proto/connection.h>
#include <proto/http_htx.h>
#include <proto/trace.h>
#include <proto/session.h>
#include <proto/stream.h>

View File

@ -29,6 +29,7 @@
#include <haproxy/compression.h>
#include <haproxy/debug.h>
#include <haproxy/http.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/pool.h>
#include <haproxy/list.h>
@ -54,7 +55,6 @@
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>
#include <proto/frontend.h>
#include <proto/http_htx.h>
#include <proto/log.h>
#include <proto/pattern.h>
#include <haproxy/pipe.h>

View File

@ -21,6 +21,7 @@
#include <haproxy/api.h>
#include <haproxy/dynbuf.h>
#include <haproxy/http_htx.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
@ -28,7 +29,6 @@
#include <proto/applet.h>
#include <proto/channel.h>
#include <proto/connection.h>
#include <proto/http_htx.h>
#include <proto/mux_pt.h>
#include <haproxy/pipe.h>
#include <proto/proxy.h>

View File

@ -6,12 +6,12 @@
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
#include <haproxy/errors.h>
#include <haproxy/http_htx.h>
#include <types/global.h>
#include <proto/arg.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/http_fetch.h>
#include <proto/http_htx.h>
#include <proto/sample.h>
#include <import/ebsttree.h>
#include <import/ebmbtree.h>