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

Almost no changes, removed stdlib and added buf-t and connection-t to
the types to avoid a warning.
diff --git a/src/activity.c b/src/activity.c
index 1f2ab48..29977d2 100644
--- a/src/activity.c
+++ b/src/activity.c
@@ -13,12 +13,12 @@
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/cli.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 #include <haproxy/thread-t.h>
 #include <haproxy/activity-t.h>
 #include <proto/channel.h>
 #include <haproxy/freq_ctr.h>
-#include <proto/stream_interface.h>
 
 
 /* bit field of profiling options. Beware, may be modified at runtime! */
diff --git a/src/applet.c b/src/applet.c
index 760ddc3..36607aa 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -16,10 +16,10 @@
 #include <haproxy/applet.h>
 #include <haproxy/api.h>
 #include <haproxy/list.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <proto/channel.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 unsigned int nb_applets = 0;
 
diff --git a/src/backend.c b/src/backend.c
index b730df7..f06cf64 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -36,6 +36,7 @@
 #include <haproxy/payload.h>
 #include <haproxy/session.h>
 #include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -55,7 +56,6 @@
 #include <haproxy/sample.h>
 #include <proto/server.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 #define TRACE_SOURCE &trace_strm
 
diff --git a/src/cache.c b/src/cache.c
index 138ae52..8a97f4e 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -16,6 +16,7 @@
 #include <haproxy/http_htx.h>
 #include <haproxy/http_rules.h>
 #include <haproxy/shctx.h>
+#include <haproxy/stream_interface.h>
 #include <import/eb32tree.h>
 #include <import/sha1.h>
 
@@ -28,7 +29,6 @@
 #include <proto/http_ana.h>
 #include <proto/log.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 
 #include <common/cfgparse.h>
diff --git a/src/check.c b/src/check.c
index edb4fea..7381a32 100644
--- a/src/check.c
+++ b/src/check.c
@@ -49,6 +49,7 @@
 #include <haproxy/signal.h>
 #include <haproxy/ssl_sock.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/vars.h>
 
@@ -64,7 +65,6 @@
 #include <haproxy/protocol.h>
 #include <proto/proxy.h>
 #include <proto/server.h>
-#include <proto/stream_interface.h>
 #include <proto/log.h>
 #include <haproxy/proto_udp.h>
 #include <haproxy/sample.h>
diff --git a/src/cli.c b/src/cli.c
index 2b54dc1..d72fb5b 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -41,6 +41,7 @@
 #include <haproxy/sample-t.h>
 #include <haproxy/session.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
@@ -62,7 +63,6 @@
 #include <proto/proxy.h>
 #include <proto/stream.h>
 #include <proto/server.h>
-#include <proto/stream_interface.h>
 
 #define PAYLOAD_PATTERN "<<"
 
diff --git a/src/connection.c b/src/connection.c
index 6575230..3c9b21e 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -22,9 +22,9 @@
 
 #include <haproxy/fd.h>
 #include <haproxy/proto_tcp.h>
-#include <proto/stream_interface.h>
 #include <haproxy/sample.h>
 #include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
 
 
 DECLARE_POOL(pool_head_connection, "connection",  sizeof(struct connection));
diff --git a/src/debug.c b/src/debug.c
index 51c84cb..4f7e6ce 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -24,6 +24,7 @@
 #include <haproxy/cli.h>
 #include <haproxy/debug.h>
 #include <haproxy/hlua.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/thread.h>
 #include <import/ist.h>
@@ -33,7 +34,6 @@
 #include <haproxy/global.h>
 
 #include <haproxy/fd.h>
-#include <proto/stream_interface.h>
 
 /* mask of threads still having to dump, used to respect ordering. Only used
  * when USE_THREAD_DUMP is set.
diff --git a/src/dns.c b/src/dns.c
index e54205b..799c7eb 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -29,6 +29,7 @@
 #include <haproxy/http_rules.h>
 #include <haproxy/sample.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tcp_rules.h>
 #include <haproxy/time.h>
@@ -45,7 +46,6 @@
 #include <proto/server.h>
 #include <haproxy/proto_udp.h>
 #include <proto/proxy.h>
-#include <proto/stream_interface.h>
 
 struct list dns_resolvers  = LIST_HEAD_INIT(dns_resolvers);
 struct list dns_srvrq_list = LIST_HEAD_INIT(dns_srvrq_list);
diff --git a/src/filters.c b/src/filters.c
index bf9e6ed..de5d9f2 100644
--- a/src/filters.c
+++ b/src/filters.c
@@ -18,6 +18,7 @@
 #include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/namespace.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 
 #include <types/filters.h>
@@ -27,7 +28,6 @@
 #include <proto/filters.h>
 #include <proto/http_ana.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 #define TRACE_SOURCE &trace_strm
 
diff --git a/src/flt_spoe.c b/src/flt_spoe.c
index 7d36a8e..d483ba5 100644
--- a/src/flt_spoe.c
+++ b/src/flt_spoe.c
@@ -23,6 +23,7 @@
 #include <haproxy/thread.h>
 #include <haproxy/pool.h>
 #include <haproxy/session.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tcp_rules.h>
 #include <haproxy/time.h>
@@ -41,7 +42,6 @@
 #include <proto/proxy.h>
 #include <proto/spoe.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 #if defined(DEBUG_SPOE) || defined(DEBUG_FULL)
 #define SPOE_PRINTF(x...) fprintf(x)
diff --git a/src/frontend.c b/src/frontend.c
index 068e8d6..5f3d6cf 100644
--- a/src/frontend.c
+++ b/src/frontend.c
@@ -27,6 +27,7 @@
 #include <haproxy/chunk.h>
 #include <haproxy/frontend.h>
 #include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tools.h>
 #include <haproxy/time.h>
@@ -41,7 +42,6 @@
 #include <proto/http_ana.h>
 #include <proto/proxy.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 /* Finish a stream accept() for a proxy (TCP or HTTP). It returns a negative
  * value in case of a critical failure which must cause the listener to be
diff --git a/src/hlua.c b/src/hlua.c
index 1538739..804f9fa 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -44,6 +44,7 @@
 #include <haproxy/sample.h>
 #include <haproxy/session.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tcp_rules.h>
 #include <haproxy/tools.h>
@@ -57,7 +58,6 @@
 #include <proto/http_ana.h>
 #include <proto/server.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 /* Lua uses longjmp to perform yield or throwing errors. This
  * macro is used only for identifying the function that can
diff --git a/src/http_act.c b/src/http_act.c
index 37966f3..4c283283 100644
--- a/src/http_act.c
+++ b/src/http_act.c
@@ -29,6 +29,7 @@
 #include <haproxy/pool.h>
 #include <haproxy/regex.h>
 #include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 #include <haproxy/uri_auth-t.h>
 #include <haproxy/version.h>
@@ -38,7 +39,6 @@
 #include <haproxy/arg.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
-#include <proto/stream_interface.h>
 
 /* Release memory allocated by most of HTTP actions. Concretly, it releases
  * <arg.http>.
diff --git a/src/http_ana.c b/src/http_ana.c
index 690640f..4675a2d 100644
--- a/src/http_ana.c
+++ b/src/http_ana.c
@@ -22,6 +22,7 @@
 #include <haproxy/net_helper.h>
 #include <haproxy/regex.h>
 #include <haproxy/stats.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/uri_auth-t.h>
 #include <haproxy/vars.h>
 
@@ -34,7 +35,6 @@
 #include <proto/proxy.h>
 #include <proto/server.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 #define TRACE_SOURCE &trace_strm
 
diff --git a/src/log.c b/src/log.c
index bafd878..4f095ca 100644
--- a/src/log.c
+++ b/src/log.c
@@ -30,6 +30,7 @@
 #include <haproxy/frontend.h>
 #include <haproxy/http.h>
 #include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 #include <haproxy/time.h>
 #include <haproxy/version.h>
@@ -43,7 +44,6 @@
 #include <haproxy/sample.h>
 #include <haproxy/sink.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 struct log_fmt {
 	char *name;
diff --git a/src/map.c b/src/map.c
index 8b7cc51..7beefde 100644
--- a/src/map.c
+++ b/src/map.c
@@ -19,11 +19,11 @@
 #include <haproxy/pattern.h>
 #include <haproxy/regex.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 
 #include <haproxy/arg.h>
 #include <proto/log.h>
-#include <proto/stream_interface.h>
 #include <haproxy/sample.h>
 
 /* Parse an IPv4 or IPv6 address and store it into the sample.
diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c
index 201de59..c429faa 100644
--- a/src/mux_fcgi.c
+++ b/src/mux_fcgi.c
@@ -24,13 +24,13 @@
 #include <haproxy/regex.h>
 #include <haproxy/session-t.h>
 #include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
 
 #include <types/proxy.h>
 
 #include <proto/fcgi-app.h>
 #include <proto/log.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 #include <haproxy/trace.h>
 
 /* FCGI Connection flags (32 bits) */
diff --git a/src/mux_h1.c b/src/mux_h1.c
index 6788530..ada8bb1 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -27,7 +27,7 @@
 #include <proto/log.h>
 #include <haproxy/session-t.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/trace.h>
 
 /*
diff --git a/src/mux_h2.c b/src/mux_h2.c
index 3497201..34caea3 100644
--- a/src/mux_h2.c
+++ b/src/mux_h2.c
@@ -23,9 +23,9 @@
 #include <haproxy/htx.h>
 #include <haproxy/net_helper.h>
 #include <haproxy/session-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/trace.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 #include <import/eb32tree.h>
 
 
diff --git a/src/mworker.c b/src/mworker.c
index 3481c19..bccffaa 100644
--- a/src/mworker.c
+++ b/src/mworker.c
@@ -25,6 +25,7 @@
 #include <haproxy/mworker.h>
 #include <haproxy/peers.h>
 #include <haproxy/signal.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/version.h>
 
 #include <haproxy/global.h>
@@ -33,7 +34,6 @@
 #include <proto/log.h>
 #include <proto/proxy.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 
 #if defined(USE_SYSTEMD)
diff --git a/src/peers.c b/src/peers.c
index 030a082..ee5b1ca 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -32,6 +32,7 @@
 #include <haproxy/session-t.h>
 #include <haproxy/signal.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/time.h>
 #include <haproxy/tools.h>
 #include <haproxy/thread.h>
@@ -42,7 +43,6 @@
 #include <proto/proxy.h>
 #include <proto/stream.h>
 #include <haproxy/stick_table.h>
-#include <proto/stream_interface.h>
 
 
 /*******************************/
diff --git a/src/pool.c b/src/pool.c
index 1e87b75..a811c77 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -21,13 +21,13 @@
 #include <haproxy/pool.h>
 #include <haproxy/list.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 
 #include <haproxy/activity-t.h>
 
 #include <proto/channel.h>
 #include <proto/log.h>
-#include <proto/stream_interface.h>
 
 #ifdef CONFIG_HAP_LOCAL_POOLS
 /* These are the most common pools, expected to be initialized first. These
diff --git a/src/proxy.c b/src/proxy.c
index 94bce71..11f340d 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -28,6 +28,7 @@
 #include <haproxy/peers.h>
 #include <haproxy/pool.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/time.h>
 
@@ -46,7 +47,6 @@
 #include <proto/server.h>
 #include <haproxy/signal.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 
 int listeners;	/* # of proxy listeners, set by cfgparse */
diff --git a/src/queue.c b/src/queue.c
index b863d64..3b5d0ef 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -73,6 +73,7 @@
 #include <haproxy/http_rules.h>
 #include <haproxy/pool.h>
 #include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tcp_rules.h>
 #include <haproxy/time.h>
@@ -83,7 +84,6 @@
 #include <proto/queue.h>
 #include <proto/server.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 
 #define NOW_OFFSET_BOUNDARY()          ((now_ms - (TIMER_LOOK_BACK >> 12)) & 0xfffff)
diff --git a/src/raw_sock.c b/src/raw_sock.c
index 2f5b98d..3453aac 100644
--- a/src/raw_sock.c
+++ b/src/raw_sock.c
@@ -26,6 +26,7 @@
 #include <haproxy/buf.h>
 #include <haproxy/connection.h>
 #include <haproxy/global.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -34,7 +35,6 @@
 #include <haproxy/freq_ctr.h>
 #include <proto/log.h>
 #include <haproxy/pipe.h>
-#include <proto/stream_interface.h>
 
 
 #if defined(USE_LINUX_SPLICE)
diff --git a/src/ring.c b/src/ring.c
index cdf9185..437ee39 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -25,7 +25,7 @@
 #include <haproxy/cli.h>
 #include <haproxy/thread.h>
 #include <haproxy/ring.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
 
 /* Creates and returns a ring buffer of size <size> bytes. Returns NULL on
  * allocation failure.
diff --git a/src/server.c b/src/server.c
index e8ed5a9..7ac8905 100644
--- a/src/server.c
+++ b/src/server.c
@@ -29,6 +29,7 @@
 #include <haproxy/namespace.h>
 #include <haproxy/sample.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/time.h>
 
@@ -37,7 +38,6 @@
 #include <proto/queue.h>
 #include <proto/server.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 #include <netinet/tcp.h>
 
 #include <import/ebsttree.h>
diff --git a/src/sink.c b/src/sink.c
index 8408be7..93beccf 100644
--- a/src/sink.c
+++ b/src/sink.c
@@ -28,7 +28,7 @@
 #include <haproxy/ring.h>
 #include <haproxy/signal.h>
 #include <haproxy/sink.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
 
 struct list sink_list = LIST_HEAD_INIT(sink_list);
 
diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c
index d0699ef..f971bee 100644
--- a/src/ssl_ckch.c
+++ b/src/ssl_ckch.c
@@ -27,12 +27,12 @@
 #include <haproxy/ssl_ckch.h>
 #include <haproxy/ssl_sock.h>
 #include <haproxy/ssl_utils.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 
 #include <import/ebsttree.h>
 
 #include <proto/channel.h>
-#include <proto/stream_interface.h>
 
 /* Uncommitted CKCH transaction */
 
diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c
index 7036fdc..118a6d1 100644
--- a/src/ssl_crtlist.c
+++ b/src/ssl_crtlist.c
@@ -20,6 +20,7 @@
 #include <haproxy/ssl_ckch.h>
 #include <haproxy/ssl_crtlist.h>
 #include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 
 #include <dirent.h>
@@ -27,7 +28,6 @@
 #include <import/ebsttree.h>
 
 #include <proto/channel.h>
-#include <proto/stream_interface.h>
 
 /* release ssl bind conf */
 void ssl_sock_free_ssl_conf(struct ssl_bind_conf *conf)
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index 914c22f..88c60c7 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -60,6 +60,7 @@
 #include <haproxy/ssl_sock.h>
 #include <haproxy/ssl_utils.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
@@ -77,7 +78,6 @@
 #include <haproxy/proto_tcp.h>
 #include <proto/http_ana.h>
 #include <proto/server.h>
-#include <proto/stream_interface.h>
 #include <proto/log.h>
 #include <proto/proxy.h>
 #include <proto/stream.h>
diff --git a/src/stats.c b/src/stats.c
index 17d4dda..a462056 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -45,6 +45,7 @@
 #include <haproxy/session.h>
 #include <haproxy/ssl_sock.h>
 #include <haproxy/stats.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
@@ -62,7 +63,6 @@
 #include <proto/proxy.h>
 #include <proto/stream.h>
 #include <proto/server.h>
-#include <proto/stream_interface.h>
 
 /* status codes available for the stats admin page (strictly 4 chars length) */
 const char *stat_status_codes[STAT_STATUS_SIZE] = {
diff --git a/src/stick_table.c b/src/stick_table.c
index 736c809..6bf6cd9 100644
--- a/src/stick_table.c
+++ b/src/stick_table.c
@@ -24,6 +24,7 @@
 #include <haproxy/net_helper.h>
 #include <haproxy/peers.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tcp_rules.h>
 #include <haproxy/tools.h>
@@ -39,7 +40,6 @@
 #include <proto/proxy.h>
 #include <haproxy/sample.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 #include <haproxy/stick_table.h>
 
 /* structure used to return a table key built from a sample */
diff --git a/src/stream.c b/src/stream.c
index 5eced5b..32964f9 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -36,6 +36,7 @@
 #include <haproxy/pool.h>
 #include <haproxy/session.h>
 #include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tcp_rules.h>
 #include <haproxy/vars.h>
@@ -57,7 +58,6 @@
 #include <proto/queue.h>
 #include <proto/server.h>
 #include <haproxy/stick_table.h>
-#include <proto/stream_interface.h>
 
 DECLARE_POOL(pool_head_stream, "stream", sizeof(struct stream));
 DECLARE_POOL(pool_head_uniqueid, "uniqueid", UNIQUEID_LEN);
diff --git a/src/stream_interface.c b/src/stream_interface.c
index 5237954..cbc8a23 100644
--- a/src/stream_interface.c
+++ b/src/stream_interface.c
@@ -24,6 +24,7 @@
 #include <haproxy/connection.h>
 #include <haproxy/dynbuf.h>
 #include <haproxy/http_htx.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -33,7 +34,6 @@
 #include <haproxy/pipe.h>
 #include <proto/proxy.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 #include <haproxy/pipe-t.h>
 
diff --git a/src/tcp_rules.c b/src/tcp_rules.c
index 8507369..ef78d20 100644
--- a/src/tcp_rules.c
+++ b/src/tcp_rules.c
@@ -18,6 +18,7 @@
 #include <haproxy/global.h>
 #include <haproxy/list.h>
 #include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/tcp_rules.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
@@ -30,7 +31,6 @@
 #include <proto/proxy.h>
 #include <haproxy/stick_table.h>
 #include <proto/stream.h>
-#include <proto/stream_interface.h>
 
 #define TRACE_SOURCE &trace_strm
 
diff --git a/src/tools.c b/src/tools.c
index 59903b1..52522cb 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -47,10 +47,10 @@
 #include <haproxy/listener.h>
 #include <haproxy/namespace.h>
 #include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
 #include <haproxy/task.h>
 #include <haproxy/tools.h>
 #include <haproxy/proto_udp.h>
-#include <proto/stream_interface.h>
 
 /* This macro returns false if the test __x is false. Many
  * of the following parsing function must be abort the processing
diff --git a/src/xprt_handshake.c b/src/xprt_handshake.c
index 1290d23..752a4f3 100644
--- a/src/xprt_handshake.c
+++ b/src/xprt_handshake.c
@@ -11,7 +11,7 @@
  */
 
 #include <haproxy/connection.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
 
 struct xprt_handshake_ctx {
 	struct connection *conn;