CLEANUP: stconn: rename cs_{i,o}{b,c} to sc_{i,o}{b,c}
We're starting to propagate the stream connector's new name through the
API. Most call places of these functions that retrieve the channel or its
buffer are in applets. The local variable names are not changed in order
to keep the changes small and reviewable. There were ~92 uses of cs_ic(),
~96 of cs_oc() (due to co_get*() being less factorizable than ci_put*),
and ~5 accesses to the buffer itself.
diff --git a/src/ring.c b/src/ring.c
index a389f5b..9ab0330 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -298,7 +298,7 @@
size_t len, cnt;
int ret;
- if (unlikely(cs_ic(cs)->flags & (CF_WRITE_ERROR|CF_SHUTW)))
+ if (unlikely(sc_ic(cs)->flags & (CF_WRITE_ERROR|CF_SHUTW)))
return 1;
HA_RWLOCK_WRLOCK(LOGSRV_LOCK, &ring->lock);
@@ -373,7 +373,7 @@
/* we've drained everything and are configured to wait for more
* data or an event (keypress, close)
*/
- if (!cs_oc(cs)->output && !(cs_oc(cs)->flags & CF_SHUTW)) {
+ if (!sc_oc(cs)->output && !(sc_oc(cs)->flags & CF_SHUTW)) {
/* let's be woken up once new data arrive */
HA_RWLOCK_WRLOCK(LOGSRV_LOCK, &ring->lock);
LIST_APPEND(&ring->waiters, &appctx->wait_entry);
@@ -382,7 +382,7 @@
ret = 0;
}
/* always drain all the request */
- co_skip(cs_oc(cs), cs_oc(cs)->output);
+ co_skip(sc_oc(cs), sc_oc(cs)->output);
}
return ret;
}