CLEANUP: conn-stream: Don't export internal functions
cs_new() and cs_attach_app() are only used internally. Thus, there is no reason to export them.
This commit is contained in:
parent
6b0a0fb2f9
commit
265e165d82
|
@ -38,7 +38,6 @@ struct check;
|
|||
struct cs_endpoint *cs_endpoint_new();
|
||||
void cs_endpoint_free(struct cs_endpoint *endp);
|
||||
|
||||
struct conn_stream *cs_new(struct cs_endpoint *endp);
|
||||
struct conn_stream *cs_new_from_mux(struct cs_endpoint *endp, struct session *sess, struct buffer *input);
|
||||
struct conn_stream *cs_new_from_applet(struct cs_endpoint *endp, struct session *sess, struct buffer *input);
|
||||
struct conn_stream *cs_new_from_strm(struct stream *strm, unsigned int flags);
|
||||
|
@ -46,7 +45,6 @@ struct conn_stream *cs_new_from_check(struct check *check, unsigned int flags);
|
|||
void cs_free(struct conn_stream *cs);
|
||||
|
||||
int cs_attach_mux(struct conn_stream *cs, void *target, void *ctx);
|
||||
void cs_attach_applet(struct conn_stream *cs, void *target, void *ctx);
|
||||
int cs_attach_strm(struct conn_stream *cs, struct stream *strm);
|
||||
|
||||
int cs_reset_endp(struct conn_stream *cs);
|
||||
|
|
|
@ -109,7 +109,7 @@ void cs_endpoint_free(struct cs_endpoint *endp)
|
|||
/* Tries to allocate a new conn_stream and initialize its main fields. On
|
||||
* failure, nothing is allocated and NULL is returned.
|
||||
*/
|
||||
struct conn_stream *cs_new(struct cs_endpoint *endp)
|
||||
static struct conn_stream *cs_new(struct cs_endpoint *endp)
|
||||
{
|
||||
struct conn_stream *cs;
|
||||
|
||||
|
@ -251,7 +251,7 @@ int cs_attach_mux(struct conn_stream *cs, void *target, void *ctx)
|
|||
}
|
||||
|
||||
/* Attaches a conn_stream to an applet endpoint and sets the endpoint ctx */
|
||||
void cs_attach_applet(struct conn_stream *cs, void *target, void *ctx)
|
||||
static void cs_attach_applet(struct conn_stream *cs, void *target, void *ctx)
|
||||
{
|
||||
struct appctx *appctx = target;
|
||||
|
||||
|
|
Loading…
Reference in New Issue