mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-05 12:13:33 +02:00
CLEANUP: stconn: rename remaining management functions from cs_* to sc_*
This is the end of the renaming for the generic SC management functions and macros: cs_applet_process() -> sc_applet_process() cs_attach_applet() -> sc_attach_applet() cs_attach_mux() -> sc_attach_mux() cs_attach_strm() -> sc_attach_strm() cs_detach_app() -> sc_detach_app() cs_detach_endp() -> sc_detach_endp() cs_notify() -> sc_notify() cs_reset_endp() -> sc_reset_endp() cs_state_in() -> sc_state_in() cs_update() -> sc_update() cs_update_rx() -> sc_update_rx() cs_update_tx() -> sc_update_tx() IS_HTX_CS() -> IS_HTX_SC()
This commit is contained in:
@@ -33,7 +33,7 @@ struct appctx;
|
||||
struct stream;
|
||||
struct check;
|
||||
|
||||
#define IS_HTX_CS(cs) (sc_conn(cs) && IS_HTX_CONN(__sc_conn(cs)))
|
||||
#define IS_HTX_SC(cs) (sc_conn(cs) && IS_HTX_CONN(__sc_conn(cs)))
|
||||
|
||||
struct sedesc *sedesc_new();
|
||||
void sedesc_free(struct sedesc *sedesc);
|
||||
@@ -43,11 +43,11 @@ struct stconn *sc_new_from_strm(struct stream *strm, unsigned int flags);
|
||||
struct stconn *sc_new_from_check(struct check *check, unsigned int flags);
|
||||
void sc_free(struct stconn *cs);
|
||||
|
||||
int cs_attach_mux(struct stconn *cs, void *target, void *ctx);
|
||||
int cs_attach_strm(struct stconn *cs, struct stream *strm);
|
||||
int sc_attach_mux(struct stconn *cs, void *target, void *ctx);
|
||||
int sc_attach_strm(struct stconn *cs, struct stream *strm);
|
||||
|
||||
void sc_destroy(struct stconn *cs);
|
||||
int cs_reset_endp(struct stconn *cs);
|
||||
int sc_reset_endp(struct stconn *cs);
|
||||
|
||||
struct appctx *sc_applet_create(struct stconn *cs, struct applet *app);
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include <haproxy/session.h>
|
||||
#include <haproxy/stream.h>
|
||||
|
||||
void cs_update_rx(struct stconn *cs);
|
||||
void cs_update_tx(struct stconn *cs);
|
||||
void sc_update_rx(struct stconn *cs);
|
||||
void sc_update_tx(struct stconn *cs);
|
||||
|
||||
struct task *sc_conn_io_cb(struct task *t, void *ctx, unsigned int state);
|
||||
int sc_conn_sync_recv(struct stconn *cs);
|
||||
@@ -340,11 +340,11 @@ static inline void cs_chk_snd(struct stconn *cs)
|
||||
cs->app_ops->chk_snd(cs);
|
||||
}
|
||||
|
||||
/* Combines both cs_update_rx() and cs_update_tx() at once */
|
||||
static inline void cs_update(struct stconn *cs)
|
||||
/* Combines both sc_update_rx() and sc_update_tx() at once */
|
||||
static inline void sc_update(struct stconn *cs)
|
||||
{
|
||||
cs_update_rx(cs);
|
||||
cs_update_tx(cs);
|
||||
sc_update_rx(cs);
|
||||
sc_update_tx(cs);
|
||||
}
|
||||
|
||||
/* for debugging, reports the stream connector state name */
|
||||
|
||||
Reference in New Issue
Block a user