[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 34/39: http3: Change some functions and parameters to static.
From: |
gnunet |
Subject: |
[gnunet] 34/39: http3: Change some functions and parameters to static. |
Date: |
Sun, 25 Aug 2024 15:16:30 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 834685a3d8b79fc3a82cc058d86e19d0ad5e2b93
Author: Shichao <mrrr61@outlook.com>
AuthorDate: Wed Aug 14 14:54:01 2024 +0800
http3: Change some functions and parameters to static.
---
src/service/transport/gnunet-communicator-http3.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/service/transport/gnunet-communicator-http3.c
b/src/service/transport/gnunet-communicator-http3.c
index d97005503..f052ab341 100644
--- a/src/service/transport/gnunet-communicator-http3.c
+++ b/src/service/transport/gnunet-communicator-http3.c
@@ -66,13 +66,13 @@ enum network_error
* #addr_map can't be discarded yet, because #mq_init parameter is address.
* So currently use cid_map seems not a perfet way.
*/
-struct GNUNET_CONTAINER_MultiHashMap *addr_map;
+static struct GNUNET_CONTAINER_MultiHashMap *addr_map;
/**
* Map of connection id (cid) -> struct Connection.
* Key is scid, which is the scid of the packet we sent.
*/
-struct GNUNET_CONTAINER_MultiHashMap *cid_map;
+static struct GNUNET_CONTAINER_MultiHashMap *cid_map;
/**
* Our configuration.
@@ -87,7 +87,7 @@ static struct GNUNET_CRYPTO_EddsaPrivateKey *my_private_key;
/**
* Our peer identity
*/
-struct GNUNET_PeerIdentity my_identity;
+static struct GNUNET_PeerIdentity my_identity;
/**
* IPv6 disabled or not.
@@ -137,7 +137,7 @@ static struct GNUNET_STATISTICS_Handle *stats;
/**
* The credential.
*/
-gnutls_certificate_credentials_t cred;
+static gnutls_certificate_credentials_t cred;
/**
* Information of a stream.
@@ -1331,7 +1331,7 @@ http_begin_headers_cb (nghttp3_conn *conn, int64_t
stream_id,
/**
* The callback of nghttp3_callback.recv_header
*/
-int
+static int
http_recv_header_cb (nghttp3_conn *conn, int64_t stream_id, int32_t token,
nghttp3_rcbuf *name, nghttp3_rcbuf *value, uint8_t flags,
void *user_data, void *stream_user_data)
@@ -1655,7 +1655,7 @@ recv_stream_data_cb (ngtcp2_conn *conn, uint32_t flags,
int64_t stream_id,
/**
* The callback function for ngtcp2_callbacks.stream_open
*/
-int
+static int
stream_open_cb (ngtcp2_conn *conn, int64_t stream_id, void *user_data)
{
struct Connection *connection = user_data;
@@ -1877,7 +1877,7 @@ recv_tx_key_cb (ngtcp2_conn *conn,
ngtcp2_encryption_level level,
/**
* The callback function for ngtcp2_callbacks.recv_rx_key
*/
-int
+static int
recv_rx_key_cb (ngtcp2_conn *conn, ngtcp2_encryption_level level,
void *user_data)
{
@@ -2860,7 +2860,7 @@ connection_on_read (struct Connection *connection,
*
* @return a new connection, NULL if error occurs.
*/
-struct Connection *
+static struct Connection *
connection_init (struct sockaddr *local_addr,
socklen_t local_addrlen,
struct sockaddr *remote_addr,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] 17/39: http3: Update TODOs, (continued)
- [gnunet] 17/39: http3: Update TODOs, gnunet, 2024/08/25
- [gnunet] 11/39: http3: use multiple streams, gnunet, 2024/08/25
- [gnunet] 30/39: http3: Autogenerate certificate when there is no certificate in the configuration file., gnunet, 2024/08/25
- [gnunet] 24/39: http3: Finish HTTP3 layer and now can pass the basic test., gnunet, 2024/08/25
- [gnunet] 23/39: http3: Fix bugs when creating a new HTTP server, gnunet, 2024/08/25
- [gnunet] 18/39: http3: add the timer after sending and writing packets, gnunet, 2024/08/25
- [gnunet] 36/39: http3: Implement bidirect and pass the test., gnunet, 2024/08/25
- [gnunet] 27/39: http3: better http3 detection logic, gnunet, 2024/08/25
- [gnunet] 28/39: http3: Gracefully delete closed connections., gnunet, 2024/08/25
- [gnunet] 29/39: http3: Load certificates from the configuration file., gnunet, 2024/08/25
- [gnunet] 34/39: http3: Change some functions and parameters to static.,
gnunet <=
- [gnunet] 31/39: http3: Fix certificate loading; fix meson install of files, gnunet, 2024/08/25
- [gnunet] 33/39: http3: Add comments; remove unneeded parameters., gnunet, 2024/08/25
- [gnunet] 35/39: http3: Add content-type in POST request., gnunet, 2024/08/25
- [gnunet] 37/39: http3: The client continues to send GET requests., gnunet, 2024/08/25
- [gnunet] 32/39: http3: proper nghttp3/tcp2 detection with automake, gnunet, 2024/08/25
- [gnunet] 38/39: http3: Cancel timer task after the peer finished test., gnunet, 2024/08/25
- [gnunet] 39/39: http3: Use long polling to improve bidirect communication., gnunet, 2024/08/25