REORG: include: make list-t.h part of the base API

There are list definitions everywhere in the code, let's drop the need
for including list-t.h to declare them. The rest of the list manipulation
is huge however and not needed everywhere so using the list walking macros
still requires to include list.h.
This commit is contained in:
Willy Tarreau 2020-06-11 09:14:49 +02:00
parent b2551057af
commit e5793916f0
43 changed files with 1 additions and 42 deletions

View File

@ -22,7 +22,6 @@
#ifndef _HAPROXY_ACL_T_H
#define _HAPROXY_ACL_T_H
#include <haproxy/list-t.h>
#include <haproxy/pattern-t.h>
#include <haproxy/sample-t.h>

View File

@ -35,5 +35,6 @@
#include <haproxy/compat.h>
#include <haproxy/compiler.h>
#include <haproxy/defaults.h>
#include <haproxy/list-t.h>
#endif /* _HAPROXY_TYPES_H */

View File

@ -26,7 +26,6 @@
#include <netinet/in.h>
#include <haproxy/buf-t.h>
#include <haproxy/list-t.h>
#include <haproxy/protobuf-t.h>
#include <haproxy/stick_table-t.h>
#include <haproxy/vars-t.h>

View File

@ -16,7 +16,6 @@
#include <haproxy/api-t.h>
#include <haproxy/auth-t.h>
#include <haproxy/list-t.h>
#define AU_O_INSECURE 0x00000001 /* insecure, unencrypted password */

View File

@ -24,7 +24,6 @@
#include <haproxy/api.h>
#include <haproxy/errors.h>
#include <haproxy/list-t.h>
#include <haproxy/proxy.h>
/* configuration sections */

View File

@ -20,7 +20,6 @@
#include <haproxy/api-t.h>
#include <haproxy/buf-t.h>
#include <haproxy/connection-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/vars-t.h>

View File

@ -23,7 +23,6 @@
#define _HAPROXY_CHECKS_H
#include <haproxy/check-t.h>
#include <haproxy/list-t.h>
#include <haproxy/proxy-t.h>
#include <haproxy/server-t.h>

View File

@ -23,7 +23,6 @@
#define _HAPROXY_CLI_T_H
#include <haproxy/applet-t.h>
#include <haproxy/list-t.h>
/* Access level for a stats socket */
#define ACCESS_LVL_NONE 0

View File

@ -31,7 +31,6 @@
#include <import/ist.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/listener-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/port_range-t.h>

View File

@ -25,7 +25,6 @@
#include <import/eb32tree.h>
#include <haproxy/connection-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/proto_udp-t.h>
#include <haproxy/task-t.h>

View File

@ -22,7 +22,6 @@
#ifndef _HAPROXY_DYNBUF_T_H
#define _HAPROXY_DYNBUF_T_H
#include <haproxy/list-t.h>
/* an element of the <buffer_wq> list. It represents an object that need to
* acquire a buffer to continue its process. */

View File

@ -32,7 +32,6 @@
#include <haproxy/buf.h>
#include <haproxy/chunk.h>
#include <haproxy/dynbuf-t.h>
#include <haproxy/list-t.h>
#include <haproxy/pool.h>
extern struct pool_head *pool_head_buffer;

View File

@ -30,7 +30,6 @@
#include <haproxy/arg-t.h>
#include <haproxy/fcgi.h>
#include <haproxy/filters-t.h>
#include <haproxy/list-t.h>
#include <haproxy/regex-t.h>
#define FCGI_APP_FL_KEEP_CONN 0x00000001 /* Keep the connection alive */

View File

@ -22,7 +22,6 @@
#define _HAPROXY_FILTERS_T_H
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
/* Flags set on a filter config */
#define FLT_CFG_FL_HTX 0x00000001 /* The filter can filter HTX streams */

View File

@ -25,7 +25,6 @@
#include <haproxy/api-t.h>
#include <haproxy/buf-t.h>
#include <haproxy/freq_ctr-t.h>
#include <haproxy/list-t.h>
#include <haproxy/vars-t.h>
/* modes of operation (global.mode) */

View File

@ -29,7 +29,6 @@
#include <import/ebpttree.h>
#include <haproxy/list-t.h>
#include <haproxy/proxy-t.h>
#include <haproxy/regex-t.h>
#include <haproxy/server-t.h>

View File

@ -29,7 +29,6 @@
#include <haproxy/buf-t.h>
#include <haproxy/http-t.h>
#include <haproxy/htx-t.h>
#include <haproxy/list-t.h>
/* Context used to find/remove an HTTP header. */
struct http_hdr_ctx {

View File

@ -23,7 +23,6 @@
#define _HAPROXY_LIST_H
#include <haproxy/api.h>
#include <haproxy/list-t.h>
#include <haproxy/thread.h>
/* First undefine some macros which happen to also be defined on OpenBSD,

View File

@ -28,7 +28,6 @@
#include <import/eb32tree.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/thread.h>

View File

@ -27,7 +27,6 @@
#include <netinet/in.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/ring-t.h>
#include <haproxy/thread-t.h>

View File

@ -32,7 +32,6 @@
#include <arpa/inet.h>
#include <haproxy/check-t.h>
#include <haproxy/list-t.h>
#include <haproxy/tcpcheck-t.h>
#include <haproxy/thread-t.h>

View File

@ -25,7 +25,6 @@
#include <import/ebmbtree.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/regex-t.h>
#include <haproxy/sample_data-t.h>
#include <haproxy/thread-t.h>

View File

@ -31,7 +31,6 @@
#include <haproxy/api-t.h>
#include <haproxy/dict-t.h>
#include <haproxy/list-t.h>
#include <haproxy/thread-t.h>

View File

@ -27,7 +27,6 @@
#include <import/eb32tree.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
/* some pointer types referenced below */
struct listener;

View File

@ -35,7 +35,6 @@
#include <haproxy/backend-t.h>
#include <haproxy/counters-t.h>
#include <haproxy/freq_ctr-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/server-t.h>
#include <haproxy/tcpcheck-t.h>

View File

@ -24,7 +24,6 @@
#include <haproxy/api-t.h>
#include <haproxy/buf-t.h>
#include <haproxy/list-t.h>
#include <haproxy/thread.h>
/* The code below handles circular buffers with single-producer and multiple

View File

@ -24,7 +24,6 @@
#define _HAPROXY_SAMPLE_T_H
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/sample_data-t.h>
/* input and output sample types */

View File

@ -34,7 +34,6 @@
#include <haproxy/counters-t.h>
#include <haproxy/dns-t.h>
#include <haproxy/freq_ctr-t.h>
#include <haproxy/list-t.h>
#include <haproxy/listener-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/openssl-compat.h>

View File

@ -29,7 +29,6 @@
#include <arpa/inet.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/stick_table-t.h>
#include <haproxy/task-t.h>

View File

@ -16,7 +16,6 @@
#include <signal.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
/* flags for -> flags */
#define SIG_F_ONE_SHOOT 0x0001 /* unregister handler before calling it */

View File

@ -24,7 +24,6 @@
#include <import/ist.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
/* A sink may be of 4 distinct types :
* - file descriptor (such as stdout)

View File

@ -23,7 +23,6 @@
#define _HAPROXY_SINK_H
#include <sys/types.h>
#include <haproxy/list-t.h>
#include <haproxy/sink-t.h>
#include <haproxy/thread.h>

View File

@ -28,7 +28,6 @@
#include <haproxy/dynbuf-t.h>
#include <haproxy/filters-t.h>
#include <haproxy/freq_ctr-t.h>
#include <haproxy/list-t.h>
#include <haproxy/proxy-t.h>
#include <haproxy/sample-t.h>
#include <haproxy/stream-t.h>

View File

@ -35,7 +35,6 @@
#include <import/ebmbtree.h>
#include <haproxy/buf-t.h>
#include <haproxy/list-t.h>
#include <haproxy/openssl-compat.h>
/* This is used to preload the certificate, private key

View File

@ -26,7 +26,6 @@
#include <import/ebmbtree.h>
#include <import/ebpttree.h>
#include <haproxy/list-t.h>
/* forward declarations for structures below */
struct bind_conf;

View File

@ -29,7 +29,6 @@
#include <haproxy/buf-t.h>
#include <haproxy/connection-t.h> /* struct wait_event */
#include <haproxy/list-t.h>
#include <haproxy/listener-t.h>
#include <haproxy/openssl-compat.h>
#include <haproxy/ssl_ckch-t.h>

View File

@ -32,7 +32,6 @@
#include <haproxy/filters-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/proxy-t.h>
#include <haproxy/queue-t.h>

View File

@ -28,7 +28,6 @@
#include <import/eb32tree.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/thread-t.h>
/* values for task->state */

View File

@ -24,7 +24,6 @@
#include <haproxy/buf-t.h>
#include <haproxy/check-t.h>
#include <haproxy/connection-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/vars-t.h>

View File

@ -28,7 +28,6 @@
#include <haproxy/action.h>
#include <haproxy/check-t.h>
#include <haproxy/list-t.h>
#include <haproxy/pool-t.h>
#include <haproxy/proxy-t.h>
#include <haproxy/tcpcheck-t.h>

View File

@ -24,7 +24,6 @@
#include <import/ist.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <haproxy/sink-t.h>
/* the macros below define an optional type for each of the 4 args passed to

View File

@ -16,7 +16,6 @@
#include <haproxy/acl-t.h>
#include <haproxy/auth-t.h>
#include <haproxy/list-t.h>
/* This is a list of proxies we are allowed to see. Later, it should go in the
* user list, but before this we need to support de/re-authentication.

View File

@ -22,7 +22,6 @@
#ifndef _HAPROXY_VARS_T_H
#define _HAPROXY_VARS_T_H
#include <haproxy/list-t.h>
#include <haproxy/sample_data-t.h>
#include <haproxy/thread-t.h>