The function returns the real stream endpoint so since there's no more
confusion around the terminology, let's drop "target".
}
-/* Returns the endpoint target without any control */
-static inline void *__cs_endp_target(const struct stconn *cs)
+/* Returns the stream endpoint from an connector, without any control */
+static inline void *__sc_endp(const struct stconn *cs)
{
return cs->sedesc->se;
}
*/
static inline void *__sc_mux_strm(const struct stconn *cs)
{
- return __cs_endp_target(cs);
+ return __sc_endp(cs);
}
static inline struct appctx *sc_mux_strm(const struct stconn *cs)
{
*/
static inline struct appctx *__sc_appctx(const struct stconn *cs)
{
- return __cs_endp_target(cs);
+ return __sc_endp(cs);
}
static inline struct appctx *sc_appctx(const struct stconn *cs)
{
BUG_ON(!cs->app);
sc_ep_clr(cs, SE_FL_ERROR);
- if (!__cs_endp_target(cs)) {
+ if (!__sc_endp(cs)) {
/* endpoint not attached or attached to a mux with no
* target. Thus the endpoint will not be release but just
* reset. The app is still attached, the cs will not be