REORG: mux-quic: rename stream initialization function

Rename both qcc_open_stream_local/remote() functions to
qcc_init_stream_local/remote(). This change is purely cosmetic. It will
reduces the ambiguity with the soon to be implemented OPEN states for
QCS instances.
This commit is contained in:
Amaury Denoyelle 2022-07-08 11:53:22 +02:00
parent e53b489826
commit b143723411
3 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@
#include <haproxy/stream.h>
#include <haproxy/xprt_quic-t.h>
struct qcs *qcc_open_stream_local(struct qcc *qcc, int bidi);
struct qcs *qcc_init_stream_local(struct qcc *qcc, int bidi);
struct buffer *qc_get_buf(struct qcs *qcs, struct buffer *bptr);
int qcs_subscribe(struct qcs *qcs, int event_type, struct wait_event *es);

View File

@ -1081,7 +1081,7 @@ static int h3_finalize(void *ctx)
struct h3c *h3c = ctx;
struct qcs *qcs;
qcs = qcc_open_stream_local(h3c->qcc, 0);
qcs = qcc_init_stream_local(h3c->qcc, 0);
if (!qcs)
return 0;

View File

@ -297,7 +297,7 @@ void qcs_notify_send(struct qcs *qcs)
*
* Returns the allocated stream instance or NULL on error.
*/
struct qcs *qcc_open_stream_local(struct qcc *qcc, int bidi)
struct qcs *qcc_init_stream_local(struct qcc *qcc, int bidi)
{
struct qcs *qcs;
enum qcs_type type;
@ -336,7 +336,7 @@ struct qcs *qcc_open_stream_local(struct qcc *qcc, int bidi)
*
* Returns the allocated stream instance or NULL on error.
*/
static struct qcs *qcc_open_stream_remote(struct qcc *qcc, uint64_t id)
static struct qcs *qcc_init_stream_remote(struct qcc *qcc, uint64_t id)
{
struct qcs *qcs = NULL;
enum qcs_type type;
@ -459,7 +459,7 @@ static struct qcs *qcc_get_qcs(struct qcc *qcc, uint64_t id)
}
else {
/* Remote stream not found - try to open it. */
qcs = qcc_open_stream_remote(qcc, id);
qcs = qcc_init_stream_remote(qcc, id);
}
out: