mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
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:
parent
e53b489826
commit
b143723411
@ -14,7 +14,7 @@
|
|||||||
#include <haproxy/stream.h>
|
#include <haproxy/stream.h>
|
||||||
#include <haproxy/xprt_quic-t.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);
|
struct buffer *qc_get_buf(struct qcs *qcs, struct buffer *bptr);
|
||||||
|
|
||||||
int qcs_subscribe(struct qcs *qcs, int event_type, struct wait_event *es);
|
int qcs_subscribe(struct qcs *qcs, int event_type, struct wait_event *es);
|
||||||
|
2
src/h3.c
2
src/h3.c
@ -1081,7 +1081,7 @@ static int h3_finalize(void *ctx)
|
|||||||
struct h3c *h3c = ctx;
|
struct h3c *h3c = ctx;
|
||||||
struct qcs *qcs;
|
struct qcs *qcs;
|
||||||
|
|
||||||
qcs = qcc_open_stream_local(h3c->qcc, 0);
|
qcs = qcc_init_stream_local(h3c->qcc, 0);
|
||||||
if (!qcs)
|
if (!qcs)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ void qcs_notify_send(struct qcs *qcs)
|
|||||||
*
|
*
|
||||||
* Returns the allocated stream instance or NULL on error.
|
* 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;
|
struct qcs *qcs;
|
||||||
enum qcs_type type;
|
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.
|
* 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;
|
struct qcs *qcs = NULL;
|
||||||
enum qcs_type type;
|
enum qcs_type type;
|
||||||
@ -459,7 +459,7 @@ static struct qcs *qcc_get_qcs(struct qcc *qcc, uint64_t id)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Remote stream not found - try to open it. */
|
/* Remote stream not found - try to open it. */
|
||||||
qcs = qcc_open_stream_remote(qcc, id);
|
qcs = qcc_init_stream_remote(qcc, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user