diff --git a/include/haproxy/connection.h b/include/haproxy/connection.h index bfa658768..5ce13899a 100644 --- a/include/haproxy/connection.h +++ b/include/haproxy/connection.h @@ -101,6 +101,7 @@ uint64_t conn_hash_digest(char *buf, size_t bufsize, enum conn_hash_params_t flags); const char *conn_err_code_str(struct connection *c); int xprt_add_hs(struct connection *conn); +void register_mux_proto(struct mux_proto_list *list); extern struct idle_conns idle_conns[MAX_THREADS]; @@ -518,12 +519,6 @@ static inline int conn_get_alpn(const struct connection *conn, const char **str, return conn->xprt->get_alpn(conn, conn->xprt_ctx, str, len); } -/* registers proto mux list . Modifies the list element! */ -static inline void register_mux_proto(struct mux_proto_list *list) -{ - LIST_APPEND(&mux_proto_list.list, &list->list); -} - /* unregisters proto mux list */ static inline void unregister_mux_proto(struct mux_proto_list *list) { diff --git a/src/connection.c b/src/connection.c index c156d9313..7d41471e5 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1565,6 +1565,12 @@ int conn_recv_socks4_proxy_response(struct connection *conn) return 0; } +/* registers proto mux list . Modifies the list element! */ +void register_mux_proto(struct mux_proto_list *list) +{ + LIST_APPEND(&mux_proto_list.list, &list->list); +} + /* Lists the known proto mux on . This function is used by "haproxy -vv" * and is suitable for early boot just after the "REGISTER" stage because it * doesn't depend on anything to be already allocated.