]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: mux-quic: rename stream initialization function
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 8 Jul 2022 09:53:22 +0000 (11:53 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 11 Jul 2022 14:24:03 +0000 (16:24 +0200)
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.

include/haproxy/mux_quic.h
src/h3.c
src/mux_quic.c

index 75e39a769e12174eab41a6edf6223aaf65647bb6..fbfa58c242a768a00c0e816f82355d758d62155f 100644 (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);
index eb930af141a3d40f7af51d3f3d621d5cff5b1d44..074016699df0240f41a22adad4ee9f4569a4d3ca 100644 (file)
--- a/src/h3.c
+++ b/src/h3.c
@@ -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;
 
index 77bce8a6e427157816b3778dd829e4611e3952dc..c6652e40943e581954b1cb425d52aafe11fe6f69 100644 (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: