mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-04 08:35:18 -04:00
MINOR: stconn: export sc_new()
This patch exports sc_new() by removing its static storage class and adding its prototype to include/haproxy/stconn.h. This is required to allow external modules, such as the upcoming haload benchmarking tool, to allocate and initialize new stream connectors from a stream endpoint descriptor (sedesc).
This commit is contained in:
parent
0b77eb5039
commit
b4aef43d46
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue