REORG: include: split mini-clist into haproxy/list and list-t.h

Half of the users of this include only need the type definitions and
not the manipulation macros nor the inline functions. Moves the various
types into mini-clist-t.h makes the files cleaner. The other one had all
its includes grouped at the top. A few files continued to reference it
without using it and were cleaned.

In addition it was about time that we'd rename that file, it's not
"mini" anymore and contains a bit more than just circular lists.
diff --git a/include/types/acl.h b/include/types/acl.h
index 748f361..7afa3d8 100644
--- a/include/types/acl.h
+++ b/include/types/acl.h
@@ -23,7 +23,7 @@
 #define _TYPES_ACL_H
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 #include <types/arg.h>
 #include <types/auth.h>
diff --git a/include/types/arg.h b/include/types/arg.h
index 60fd007..366c09e 100644
--- a/include/types/arg.h
+++ b/include/types/arg.h
@@ -26,7 +26,7 @@
 #include <netinet/in.h>
 
 #include <common/chunk.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 #include <types/vars.h>
 #include <types/protocol_buffers.h>
diff --git a/include/types/auth.h b/include/types/auth.h
index c10aced..f9b56f1 100644
--- a/include/types/auth.h
+++ b/include/types/auth.h
@@ -14,7 +14,7 @@
 #define _TYPES_AUTH_H
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 #include <types/auth.h>
 
diff --git a/include/types/checks.h b/include/types/checks.h
index 6d07c9a..3ea4a06 100644
--- a/include/types/checks.h
+++ b/include/types/checks.h
@@ -18,7 +18,7 @@
 
 #include <common/standard.h>
 #include <import/ist.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/regex.h>
 #include <haproxy/buf-t.h>
 
diff --git a/include/types/cli.h b/include/types/cli.h
index 8a44124..41753c5 100644
--- a/include/types/cli.h
+++ b/include/types/cli.h
@@ -20,7 +20,7 @@
 #ifndef _TYPES_CLI_H
 #define _TYPES_CLI_H
 
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <types/applet.h>
 
 /* Access level for a stats socket */
diff --git a/include/types/dns.h b/include/types/dns.h
index 06afda8..84a8219 100644
--- a/include/types/dns.h
+++ b/include/types/dns.h
@@ -24,7 +24,7 @@
 
 #include <import/eb32tree.h>
 
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/hathreads.h>
 
 #include <types/connection.h>
diff --git a/include/types/fcgi-app.h b/include/types/fcgi-app.h
index 7fb20ee..c88dda3 100644
--- a/include/types/fcgi-app.h
+++ b/include/types/fcgi-app.h
@@ -25,7 +25,7 @@
 #include <haproxy/api-t.h>
 #include <import/ist.h>
 #include <common/fcgi.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/regex.h>
 
 #include <import/ebistree.h>
diff --git a/include/types/filters.h b/include/types/filters.h
index 5de4eee..2e06b83 100644
--- a/include/types/filters.h
+++ b/include/types/filters.h
@@ -22,7 +22,7 @@
 #define _TYPES_FILTERS_H
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 struct http_msg;
 struct proxy;
diff --git a/include/types/listener.h b/include/types/listener.h
index 7374dc8..4314209 100644
--- a/include/types/listener.h
+++ b/include/types/listener.h
@@ -30,7 +30,7 @@
 #include <haproxy/openssl-compat.h>
 #endif
 
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/hathreads.h>
 
 #include <types/obj_type.h>
diff --git a/include/types/log.h b/include/types/log.h
index 2c2ac02..301c2bf 100644
--- a/include/types/log.h
+++ b/include/types/log.h
@@ -27,7 +27,7 @@
 #include <netinet/in.h>
 #include <haproxy/api-t.h>
 #include <common/hathreads.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <types/ring.h>
 
 #define NB_LOG_FACILITIES       24
diff --git a/include/types/pattern.h b/include/types/pattern.h
index f1468b3..1a3e076 100644
--- a/include/types/pattern.h
+++ b/include/types/pattern.h
@@ -23,7 +23,7 @@
 #define _TYPES_PATTERN_H
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/regex.h>
 
 #include <types/sample.h>
diff --git a/include/types/peers.h b/include/types/peers.h
index 7461347..b3e1e44 100644
--- a/include/types/peers.h
+++ b/include/types/peers.h
@@ -28,7 +28,7 @@
 #include <arpa/inet.h>
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/regex.h>
 #include <import/eb32tree.h>
 
diff --git a/include/types/protocol.h b/include/types/protocol.h
index edda61c..0c49068 100644
--- a/include/types/protocol.h
+++ b/include/types/protocol.h
@@ -26,7 +26,7 @@
 #include <sys/socket.h>
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <import/eb32tree.h>
 
 /* some pointer types referenced below */
diff --git a/include/types/proxy.h b/include/types/proxy.h
index c75f0b6..f7bdd30 100644
--- a/include/types/proxy.h
+++ b/include/types/proxy.h
@@ -30,7 +30,7 @@
 #include <haproxy/api-t.h>
 #include <common/chunk.h>
 #include <common/http.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/regex.h>
 #include <common/hathreads.h>
 
diff --git a/include/types/queue.h b/include/types/queue.h
index b0800f3..9333468 100644
--- a/include/types/queue.h
+++ b/include/types/queue.h
@@ -23,7 +23,7 @@
 #define _TYPES_QUEUE_H
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/hathreads.h>
 
 #include <types/server.h>
diff --git a/include/types/sample.h b/include/types/sample.h
index bb6b092..618be08 100644
--- a/include/types/sample.h
+++ b/include/types/sample.h
@@ -28,7 +28,7 @@
 
 #include <haproxy/buf-t.h>
 #include <common/http.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 struct arg;
 
diff --git a/include/types/server.h b/include/types/server.h
index c8e5bb6..1737f80 100644
--- a/include/types/server.h
+++ b/include/types/server.h
@@ -26,7 +26,7 @@
 #include <arpa/inet.h>
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/api.h>
 #include <common/hathreads.h>
 #include <haproxy/openssl-compat.h>
 
diff --git a/include/types/session.h b/include/types/session.h
index fb6b621..57ee52a 100644
--- a/include/types/session.h
+++ b/include/types/session.h
@@ -29,7 +29,7 @@
 #include <arpa/inet.h>
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 #include <types/obj_type.h>
 #include <types/proxy.h>
diff --git a/include/types/signal.h b/include/types/signal.h
index 661347a..838aefd 100644
--- a/include/types/signal.h
+++ b/include/types/signal.h
@@ -17,7 +17,7 @@
 
 #include <signal.h>
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/standard.h>
 
 /* flags for -> flags */
diff --git a/include/types/spoe.h b/include/types/spoe.h
index eaa0ef0..85f8b43 100644
--- a/include/types/spoe.h
+++ b/include/types/spoe.h
@@ -25,7 +25,7 @@
 #include <sys/time.h>
 
 #include <common/buffer.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/hathreads.h>
 
 #include <types/filters.h>
diff --git a/include/types/ssl_ckch.h b/include/types/ssl_ckch.h
index a63ec1d..a410810 100644
--- a/include/types/ssl_ckch.h
+++ b/include/types/ssl_ckch.h
@@ -33,7 +33,7 @@
 #define _TYPES_SSL_CKCH_H
 #ifdef USE_OPENSSL
 
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <haproxy/openssl-compat.h>
 
 /* This is used to preload the certificate, private key
diff --git a/include/types/ssl_crtlist.h b/include/types/ssl_crtlist.h
index 2879d74..ed8c135 100644
--- a/include/types/ssl_crtlist.h
+++ b/include/types/ssl_crtlist.h
@@ -25,7 +25,7 @@
 
 #include <import/ebmbtree.h>
 
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 /* forward declarations for structures below */
 struct bind_conf;
diff --git a/include/types/ssl_sock.h b/include/types/ssl_sock.h
index be58aa8..d62e4dd 100644
--- a/include/types/ssl_sock.h
+++ b/include/types/ssl_sock.h
@@ -33,7 +33,7 @@
 
 #include <common/buffer.h>
 #include <common/hathreads.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <haproxy/openssl-compat.h>
 
 /* ***** READ THIS before adding code here! *****
diff --git a/include/types/stream.h b/include/types/stream.h
index e450c63..37bdb96 100644
--- a/include/types/stream.h
+++ b/include/types/stream.h
@@ -29,7 +29,7 @@
 #include <arpa/inet.h>
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 
 #include <types/channel.h>
 #include <types/filters.h>
diff --git a/include/types/task.h b/include/types/task.h
index 01756ea..fe945df 100644
--- a/include/types/task.h
+++ b/include/types/task.h
@@ -25,7 +25,7 @@
 #include <sys/time.h>
 
 #include <haproxy/api-t.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <import/eb32sctree.h>
 #include <import/eb32tree.h>
 
diff --git a/include/types/trace.h b/include/types/trace.h
index ad9d7b6..c119ab3 100644
--- a/include/types/trace.h
+++ b/include/types/trace.h
@@ -25,7 +25,7 @@
 #include <haproxy/api-t.h>
 #include <common/buffer.h>
 #include <import/ist.h>
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <types/sink.h>
 
 /* the macros below define an optional type for each of the 4 args passed to
diff --git a/include/types/vars.h b/include/types/vars.h
index a72469f..91fcf07 100644
--- a/include/types/vars.h
+++ b/include/types/vars.h
@@ -1,7 +1,7 @@
 #ifndef _TYPES_VARS_H
 #define _TYPES_VARS_H
 
-#include <common/mini-clist.h>
+#include <haproxy/list-t.h>
 #include <common/hathreads.h>
 
 #include <types/sample.h>