diff --git a/include/haproxy/stconn.h b/include/haproxy/stconn.h index 6cf4672a6..2bd088644 100644 --- a/include/haproxy/stconn.h +++ b/include/haproxy/stconn.h @@ -40,6 +40,7 @@ struct check; #define IS_HTX_SC(sc) ((sc_conn(sc) && IS_HTX_CONN(__sc_conn(sc))) || (sc_appctx(sc) && IS_HTX_STRM(__sc_strm(sc)))) struct sedesc *sedesc_new(); +struct stconn *sc_new(struct sedesc *sedesc); void sedesc_free(struct sedesc *sedesc); void se_shutdown(struct sedesc *sedesc, enum se_shut_mode mode); diff --git a/src/stconn.c b/src/stconn.c index 8d5dfeade..8c5c8a6d7 100644 --- a/src/stconn.c +++ b/src/stconn.c @@ -134,7 +134,7 @@ void se_shutdown(struct sedesc *sedesc, enum se_shut_mode mode) * function. The caller must, at least, set the SE_FL_ORPHAN or SE_FL_DETACHED * flag. */ -static struct stconn *sc_new(struct sedesc *sedesc) +struct stconn *sc_new(struct sedesc *sedesc) { struct stconn *sc;