BUILD: connection: stop including listener-t.h
authorWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 18:14:39 +0000 (20:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 18:27:08 +0000 (20:27 +0200)
listener-t comes with openssl just due to the SSL_CTX type that is
declred as a typedef in openssl hence cannot be abstracted at this
level. However connection-t.h doen't need all that just to know that
bind_conf is a struct. Let's declare it with other external types
instead..

include/haproxy/connection-t.h

index 8579632..9451585 100644 (file)
 
 #include <haproxy/api-t.h>
 #include <haproxy/buf-t.h>
-#include <haproxy/listener-t.h>
 #include <haproxy/obj_type-t.h>
 #include <haproxy/port_range-t.h>
 #include <haproxy/protocol-t.h>
+#include <haproxy/thread-t.h>
 
 /* referenced below */
 struct connection;
@@ -49,6 +49,7 @@ struct server;
 struct session;
 struct pipe;
 struct quic_conn;
+struct bind_conf;
 
 /* Note: subscribing to these events is only valid after the caller has really
  * attempted to perform the operation, and failed to proceed or complete.