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

It was moved without any change, however many callers didn't need it at
all. This was a consequence of the split of proto_http.c into several
parts that resulted in many locations to still reference it.
This commit is contained in:
Willy Tarreau 2020-06-04 21:21:03 +02:00
parent f1d32c475c
commit c2b1ff04e5
32 changed files with 33 additions and 45 deletions

View File

@ -3,7 +3,7 @@
#include <haproxy/channel-t.h>
#include <haproxy/connection-t.h>
#include <types/http_ana.h>
#include <haproxy/http_ana-t.h>
#include <types/stream.h>
#include <haproxy/stream_interface-t.h>
#include <haproxy/task-t.h>

View File

@ -33,7 +33,6 @@
#include <haproxy/regex-t.h>
#include <haproxy/xref-t.h>
#include <types/http_ana.h>
#include <types/proxy.h>
#include <types/server.h>
#include <haproxy/stick_table-t.h>

View File

@ -1,5 +1,5 @@
/*
* include/types/http_ana.h
* include/haproxy/http_ana-t.h
* This file contains HTTP protocol definitions.
*
* Copyright (C) 2000-2011 Willy Tarreau - w@1wt.eu
@ -19,13 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _TYPES_PROTO_HTTP_H
#define _TYPES_PROTO_HTTP_H
#ifndef _HAPROXY_PROTO_HTTP_T_H
#define _HAPROXY_PROTO_HTTP_T_H
#include <haproxy/channel-t.h>
#include <haproxy/api-t.h>
#include <haproxy/http-t.h>
#include <haproxy/http_htx-t.h>
#include <haproxy/api-t.h>
/* These are the flags that are found in txn->flags */
@ -186,9 +185,7 @@ struct http_txn {
struct http_auth_data auth; /* HTTP auth data */
};
extern struct pool_head *pool_head_http_txn;
#endif /* _TYPES_PROTO_HTTP_H */
#endif /* _HAPROXY_PROTO_HTTP_T_H */
/*
* Local variables:

View File

@ -1,5 +1,5 @@
/*
* include/proto/http_ana.h
* include/haproxy/http_ana.h
* This file contains HTTP protocol definitions.
*
* Copyright (C) 2000-2011 Willy Tarreau - w@1wt.eu
@ -19,16 +19,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _PROTO_PROTO_HTTP_H
#define _PROTO_PROTO_HTTP_H
#ifndef _HAPROXY_PROTO_HTTP_H
#define _HAPROXY_PROTO_HTTP_H
#include <haproxy/api.h>
#include <haproxy/channel-t.h>
#include <haproxy/htx.h>
#include <types/http_ana.h>
#include <haproxy/http_ana-t.h>
#include <haproxy/htx-t.h>
#include <types/stream.h>
extern struct pool_head *pool_head_uniqueid;
extern struct pool_head *pool_head_http_txn;
int http_wait_for_request(struct stream *s, struct channel *req, int an_bit);
int http_process_req_common(struct stream *s, struct channel *req, int an_bit, struct proxy *px);
@ -78,7 +79,7 @@ static inline const char *h1_msg_state_str(enum h1_state msg_state)
}
}
#endif /* _PROTO_PROTO_HTTP_H */
#endif /* _HAPROXY_PROTO_HTTP_H */
/*
* Local variables:

View File

@ -23,7 +23,7 @@
#include <haproxy/channel.h>
#include <types/filters.h>
#include <types/http_ana.h>
#include <haproxy/http_ana-t.h>
#include <types/proxy.h>
#include <types/stream.h>

View File

@ -32,6 +32,7 @@
#include <haproxy/channel-t.h>
#include <haproxy/dynbuf-t.h>
#include <haproxy/hlua-t.h>
#include <haproxy/http_ana-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/session-t.h>
@ -39,7 +40,6 @@
#include <haproxy/vars-t.h>
#include <types/filters.h>
#include <types/http_ana.h>
#include <types/proxy.h>
#include <types/queue.h>
#include <types/server.h>

View File

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

View File

@ -26,6 +26,7 @@
#include <haproxy/frontend.h>
#include <haproxy/hash.h>
#include <haproxy/http.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/lb_chash.h>
@ -49,7 +50,6 @@
#include <proto/backend.h>
#include <proto/log.h>
#include <haproxy/protocol.h>
#include <proto/http_ana.h>
#include <haproxy/proto_tcp.h>
#include <proto/proxy.h>
#include <proto/queue.h>

View File

@ -14,6 +14,7 @@
#include <haproxy/api.h>
#include <haproxy/channel.h>
#include <haproxy/cli.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_htx.h>
#include <haproxy/http_rules.h>
#include <haproxy/shctx.h>
@ -26,7 +27,6 @@
#include <proto/proxy.h>
#include <proto/filters.h>
#include <proto/http_ana.h>
#include <proto/log.h>
#include <proto/stream.h>

View File

@ -46,6 +46,7 @@
#include <haproxy/dns.h>
#include <haproxy/errors.h>
#include <haproxy/frontend.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_rules.h>
#include <haproxy/lb_chash.h>
#include <haproxy/lb_fas.h>
@ -73,7 +74,6 @@
#include <proto/filters.h>
#include <proto/log.h>
#include <haproxy/protocol.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <haproxy/peers.h>
#include <haproxy/sample.h>

View File

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

View File

@ -41,7 +41,6 @@
#include <haproxy/global.h>
#include <haproxy/fd.h>
#include <proto/http_ana.h>
#include <proto/log.h>
#include <proto/server.h>
#include <haproxy/proto_udp.h>

View File

@ -15,6 +15,7 @@
#include <common/cfgparse.h>
#include <haproxy/errors.h>
#include <haproxy/flt_http_comp.h>
#include <haproxy/http_ana-t.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/namespace.h>
@ -22,11 +23,10 @@
#include <haproxy/tools.h>
#include <types/filters.h>
#include <types/http_ana.h>
#include <haproxy/compression.h>
#include <proto/filters.h>
#include <proto/http_ana.h>
#include <haproxy/http_ana.h>
#include <proto/stream.h>
#define TRACE_SOURCE &trace_strm

View File

@ -14,6 +14,7 @@
#include <haproxy/compression.h>
#include <haproxy/dynbuf.h>
#include <haproxy/http.h>
#include <haproxy/http_ana-t.h>
#include <haproxy/http_htx.h>
#include <common/cfgparse.h>
#include <haproxy/htx.h>
@ -25,7 +26,6 @@
#include <types/proxy.h>
#include <proto/filters.h>
#include <proto/http_ana.h>
#include <proto/stream.h>
const char *http_comp_flt_id = "compression filter";

View File

@ -38,7 +38,6 @@
#include <proto/filters.h>
#include <haproxy/freq_ctr.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/spoe.h>
#include <proto/stream.h>

View File

@ -14,6 +14,7 @@
#include <haproxy/api.h>
#include <haproxy/channel-t.h>
#include <haproxy/http_ana-t.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/tools.h>
@ -26,7 +27,6 @@
#include <proto/filters.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/stream.h>
const char *trace_flt_id = "trace filter";

View File

@ -26,6 +26,7 @@
#include <haproxy/api.h>
#include <haproxy/chunk.h>
#include <haproxy/frontend.h>
#include <haproxy/http_ana.h>
#include <haproxy/sample.h>
#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
@ -38,7 +39,6 @@
#include <haproxy/fd.h>
#include <proto/log.h>
#include <haproxy/proto_tcp.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/stream.h>

View File

@ -126,7 +126,6 @@
#include <proto/filters.h>
#include <proto/log.h>
#include <haproxy/protocol.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/queue.h>
#include <proto/server.h>

View File

@ -36,6 +36,7 @@
#include <haproxy/h1.h>
#include <haproxy/hlua.h>
#include <haproxy/hlua_fcn.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_fetch.h>
#include <haproxy/http_rules.h>
#include <haproxy/map.h>
@ -55,7 +56,6 @@
#include <haproxy/arg.h>
#include <proto/queue.h>
#include <proto/http_ana.h>
#include <proto/server.h>
#include <proto/stream.h>

View File

@ -23,6 +23,7 @@
#include <haproxy/chunk.h>
#include <haproxy/global.h>
#include <haproxy/http.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_htx.h>
#include <haproxy/http_rules.h>
#include <haproxy/pattern.h>
@ -38,7 +39,6 @@
#include <haproxy/arg.h>
#include <proto/log.h>
#include <proto/http_ana.h>
/* Release memory allocated by most of HTTP actions. Concretly, it releases
* <arg.http>.

View File

@ -18,6 +18,7 @@
#include <haproxy/check.h>
#include <haproxy/connection.h>
#include <haproxy/http.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/net_helper.h>
@ -31,7 +32,6 @@
#include <proto/filters.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/server.h>
#include <proto/stream.h>

View File

@ -26,6 +26,7 @@
#include <haproxy/h1.h>
#include <haproxy/h1_htx.h>
#include <haproxy/http.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_fetch.h>
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
@ -37,7 +38,6 @@
#include <haproxy/arg.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/stream.h>

View File

@ -30,7 +30,6 @@
#include <haproxy/capture-t.h>
#include <haproxy/arg.h>
#include <proto/http_ana.h>
#include <haproxy/sample.h>

View File

@ -23,7 +23,6 @@
#include <haproxy/htx.h>
#include <haproxy/arg.h>
#include <haproxy/sample.h>
#include <proto/http_ana.h>
/************************************************************************/

View File

@ -50,7 +50,6 @@
#include <proto/log.h>
#include <haproxy/port_range.h>
#include <haproxy/protocol.h>
#include <proto/http_ana.h>
#include <haproxy/proto_tcp.h>
#include <proto/proxy.h>
#include <proto/server.h>

View File

@ -23,6 +23,7 @@
#include <haproxy/cli.h>
#include <haproxy/errors.h>
#include <haproxy/global.h>
#include <haproxy/http_ana.h>
#include <haproxy/listener.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/peers.h>
@ -42,7 +43,6 @@
#include <proto/filters.h>
#include <proto/log.h>
#include <haproxy/proto_tcp.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/server.h>
#include <haproxy/signal.h>

View File

@ -80,7 +80,6 @@
#include <haproxy/thread.h>
#include <import/eb32tree.h>
#include <proto/http_ana.h>
#include <proto/queue.h>
#include <proto/server.h>
#include <proto/stream.h>

View File

@ -76,7 +76,6 @@
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>
#include <haproxy/proto_tcp.h>
#include <proto/http_ana.h>
#include <proto/server.h>
#include <proto/log.h>
#include <proto/proxy.h>

View File

@ -35,7 +35,6 @@
#include <haproxy/arg.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <haproxy/proto_tcp.h>
#include <proto/proxy.h>
#include <haproxy/sample.h>

View File

@ -30,6 +30,7 @@
#include <haproxy/frontend.h>
#include <haproxy/global.h>
#include <haproxy/hlua.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_rules.h>
#include <haproxy/istbuf.h>
#include <haproxy/thread.h>
@ -53,7 +54,6 @@
#include <proto/log.h>
#include <proto/stream.h>
#include <haproxy/pipe.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/queue.h>
#include <proto/server.h>

View File

@ -11,7 +11,6 @@
#include <haproxy/vars.h>
#include <haproxy/arg.h>
#include <proto/http_ana.h>
#include <proto/stream.h>
/* This contains a pool of struct vars */

View File

@ -7,11 +7,11 @@
#include <haproxy/chunk.h>
#include <haproxy/errors.h>
#include <haproxy/global.h>
#include <haproxy/http_ana.h>
#include <haproxy/http_fetch.h>
#include <haproxy/http_htx.h>
#include <haproxy/arg.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <haproxy/sample.h>
#include <import/ebsttree.h>
#include <import/ebmbtree.h>