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:
Willy Tarreau
2022-05-27 08:49:24 +02:00
parent a0b58b537d
commit 19c65a9ded
15 changed files with 56 additions and 56 deletions

View File

@@ -65,7 +65,7 @@ smp_fetch_len(const struct arg *args, struct sample *smp, const char *kw, void *
struct check *check = __objt_check(smp->sess->origin);
/* Not accurate but kept for backward compatibility purpose */
smp->data.u.sint = ((check->cs && IS_HTX_CS(check->cs)) ? (htxbuf(&check->bi))->data: b_data(&check->bi));
smp->data.u.sint = ((check->cs && IS_HTX_SC(check->cs)) ? (htxbuf(&check->bi))->data: b_data(&check->bi));
}
else
return 0;
@@ -1020,7 +1020,7 @@ smp_fetch_payload_lv(const struct arg *arg_p, struct sample *smp, const char *kw
struct check *check = __objt_check(smp->sess->origin);
/* meaningless for HTX buffers */
if (check->cs && IS_HTX_CS(check->cs))
if (check->cs && IS_HTX_SC(check->cs))
return 0;
head = b_head(&check->bi);
data = b_data(&check->bi);
@@ -1089,7 +1089,7 @@ smp_fetch_payload(const struct arg *arg_p, struct sample *smp, const char *kw, v
struct check *check = __objt_check(smp->sess->origin);
/* meaningless for HTX buffers */
if (check->cs && IS_HTX_CS(check->cs))
if (check->cs && IS_HTX_SC(check->cs))
return 0;
head = b_head(&check->bi);
data = b_data(&check->bi);