]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: make list-t.h part of the base API
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 07:14:49 +0000 (09:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:59 +0000 (10:18 +0200)
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.

43 files changed:
include/haproxy/acl-t.h
include/haproxy/api-t.h
include/haproxy/arg-t.h
include/haproxy/auth-t.h
include/haproxy/cfgparse.h
include/haproxy/check-t.h
include/haproxy/check.h
include/haproxy/cli-t.h
include/haproxy/connection-t.h
include/haproxy/dns-t.h
include/haproxy/dynbuf-t.h
include/haproxy/dynbuf.h
include/haproxy/fcgi-app-t.h
include/haproxy/filters-t.h
include/haproxy/global-t.h
include/haproxy/hlua-t.h
include/haproxy/http_htx-t.h
include/haproxy/list.h
include/haproxy/listener-t.h
include/haproxy/log-t.h
include/haproxy/mailers-t.h
include/haproxy/pattern-t.h
include/haproxy/peers-t.h
include/haproxy/protocol-t.h
include/haproxy/proxy-t.h
include/haproxy/ring-t.h
include/haproxy/sample-t.h
include/haproxy/server-t.h
include/haproxy/session-t.h
include/haproxy/signal-t.h
include/haproxy/sink-t.h
include/haproxy/sink.h
include/haproxy/spoe-t.h
include/haproxy/ssl_ckch-t.h
include/haproxy/ssl_crtlist-t.h
include/haproxy/ssl_sock-t.h
include/haproxy/stream-t.h
include/haproxy/task-t.h
include/haproxy/tcpcheck-t.h
include/haproxy/tcpcheck.h
include/haproxy/trace-t.h
include/haproxy/uri_auth-t.h
include/haproxy/vars-t.h

index a96aa428d958eae57ec5d278299d4ad960d2f0dd..e7de2a21d861a5505e3493fc52bc52eb559cc80f 100644 (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>
 
index e82f54b657a9a7a72dd8ff28973a232f0849e254..edb33a859d826430f421afff9f0800a83cfec562 100644 (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 */
index 04d2d9e4f7774386ecc1f0076174aa239b3336a8..55d7e443c008aa3de1950e214c069bcd7566ec2c 100644 (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>
index 26716acdafe4821641aa458e215b6bd72ee469d2..fc8b6ec503af7b8136c8fc6da3e92e71c71cda09 100644 (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 */
 
index 646384e31841aaf45ecc31e575dab10bdab15892..15a46ec8a890be34a279c91ca53331c7097b2d9c 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <haproxy/api.h>
 #include <haproxy/errors.h>
-#include <haproxy/list-t.h>
 #include <haproxy/proxy.h>
 
 /* configuration sections */
index 901805dd4ebc02d5bfa55939c9ab6c6a9de93a38..727f837bb87d4d0947bf20f0496cb10e3dcdde50 100644 (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>
 
index 1d3340ad610955c44338d652e4d0ef05cfeaa183..a1bdb012dfd30a84f7a1e7d97938b566ae9551e6 100644 (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>
 
index bfa3a34a7edb7cef5c5b33f5d7ba0f26ff66a850..8f12fee4258da66ce4f90f3adac394534edb84c8 100644 (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
index 3755e83e4904e8767d86cd3b84762c735dc30e43..ff0ba92e76bef6fbc1504cd4356c33413d6d9849 100644 (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>
index 6816b0835a7fddddf979e10bbde10f5ac6508bcd..9ba60012cf2b653fd833123bfe0752832fe366ba 100644 (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>
index 451d58c53822fd45761994e596bc7b46cd70678a..b76b30bdce3175169eb5029289f45e67390043fc 100644 (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. */
index 01a784d4f79d6d05c6667118f898983621d77cc9..fb72b0a9b1ce6f41671b78ca4feaf7f5d4c1c7fa 100644 (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;
index 3148260979bf5bab106932085ef7d3ea0a60a8c1..10cb1785f58db15fe5b0922361879ff3c74ab8d8 100644 (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 */
index f41fa10902bd4f17666e0a270fbcaf1debcbd1ce..d2f8c7386891211f7bae38fec378c0b2f01bb949 100644 (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 */
index 078889d78c2a0bbb477d0603b63f461f7f4f80d9..7db541209b0c834815ae82d075aa912615827d79 100644 (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) */
index 6764bfa57d4ab539aa0638d5404d1025e42d25a4..391310c10349cc655879fce08e6fd61f1d83f24f 100644 (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>
index 9ca06a03e3fdd1f8ff995641659b7234c53720aa..8051925e2e7aeed2a2f370e8ad21593c80662535 100644 (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 {
index a35502c67a166f5573c1251d65b0b2a1928720fc..2f2699f17c5d3b9b775d97ad9fc3571daeebc957 100644 (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,
index 4412cf7be0710902fb2c74d37bfc9f00d42ba32a..224e32513c5be8b8e71b4af1da1fc0f89e76592b 100644 (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>
 
index bee43283f7f3d7ef688efa6a476e7204aa62a69a..2fcce43bd6dd0b4c5879e16ef966a93fdc1f00d4 100644 (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>
 
index 076a9f76d5b60c52966df788694415dd4220db02..0fa3197a97149d19155bc3c6a74613da75dadedb 100644 (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>
 
index 63e4c7271c439be7f57adbcbe0c4e8826c067ce3..c9a14a82524331b10b87a35a50cb75995512119e 100644 (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>
index a681cff674a141ad08bfee1be7872f426b057957..0f8db66cc38e768c2724664840417ca0429d94ab 100644 (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>
 
 
index cc762aefa63dd3c85a16bea07ac2b43c8347ca0a..83620db41529e243c5e48934d58abba07a33ac63 100644 (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;
index 5cdba708f0d74c0ee731d276fbd14ccf79e90d64..20cc3c9e16df57f63692a8b7a9f54c4c8d630503 100644 (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>
index e1f9468dc3883277654c09674531322a7cb05e2d..a379265cff9832d280a084705f26a44dc7f8f163 100644 (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
index 2873037fb9eb8b095f004058d9364072fec67217..d11c411dde4a450520d7ffaacbca6151ed49ad91 100644 (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 */
index 1db69b461d86d1a67de17faa86de24f3d609a6be..48ed176eb2f30d4090aaf8fdf7cf2572cf4fd90f 100644 (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>
index b47760c6c8112d0fccfef0fe074bfec5be1a51ff..3bb753acff1b277c1798f86d720aed2f79d32406 100644 (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>
index 3991f56ea321467d8e3aa717aa26f77d4ae2ad11..85d4b3396d942204d6c52efe6ec2495276efd195 100644 (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 */
index a2464357c34bbe0c228ba797d0f7369ced40a972..e3922d856f364a4c3fc73652746ec2aca04d7de4 100644 (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)
index 6b2ce613dda7da26ab73bf52f98c61c5376f8059..025fa4185c54ba7307472a71fac5908447073eb9 100644 (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>
 
index bd9bdb2bcb92ab6b9f8e0926ac9436d265a35a00..dbfe0cb476be599060497717d9f7e0f0217b7bd4 100644 (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>
index d102887af79b7cde574b8d6ac62b4a6d8673e073..a811ee30f58707eaeb67936c144306f5ef4cb106 100644 (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
index 6ca48b5d92daef0a7cfd895d4dceb3e4a3a4df69..7ec8aa9f0b198003f1f37265c240bf41623c3e3a 100644 (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;
index fbaa8f068ef781b6be4c37c98b782538ca7e4eb0..d54469c9ea6d257212ed7859607adc291a9e5753 100644 (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>
index 525373c8b309d9320d3659c4f23577f557304f88..96401119794a75b8a46ba8a1fa2133cd2faa309e 100644 (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>
index 872918815ff15f44debde3bb7edd499305c71b4a..2ea2b3ca50941b1a27d49d367c9b68096b54d9e2 100644 (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 */
index d767d8e3f5495c5f9560a24e7be96fb5a966b4dc..042f83375a9e8f3e867b0367d6c4792f04b491e1 100644 (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>
 
index 4583dbb1a563d666dfc75e9b1aba002180d40082..8befe3bbcbc55ceb8ce172a4cea6954633d23aa2 100644 (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>
index 2ceddfb1ff43b2828941f6186059ccf38df15a8e..8bc7d0070c04dbc2450cee8adb289afe94f494ea 100644 (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
index 250979155f64e46f12b183318617207e5b8071e1..009adfdfe6ac1dcbe97a8e3140a42a6967b2463a 100644 (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.
index 388d20812055a92abf60754227dd4830aee71a90..e1e04524c71c2c3d6fbb68382b3d86da497bf813 100644 (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>