[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Add docstrings to recently
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Add docstrings to recently introduced functions |
Date: |
Thu, 09 Aug 2018 13:54:58 +0200 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 9c164a60e Add docstrings to recently introduced functions
9c164a60e is described below
commit 9c164a60e4e3d6fadfd85cdd8d3def851c37d0de
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Aug 9 13:54:10 2018 +0200
Add docstrings to recently introduced functions
---
src/rps/gnunet-service-rps.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 21963ee42..d601ac7d4 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -1257,6 +1257,11 @@ Peers_get_channel_flag (const struct GNUNET_PeerIdentity
*peer,
int
Peers_check_channel_flag (uint32_t *channel_flags, enum Peers_ChannelFlags
flags);
+/**
+ * @brief Callback for the scheduler to destroy the knowledge of a peer.
+ *
+ * @param cls Context of the peer
+ */
static void
destroy_peer (void *cls)
{
@@ -1271,6 +1276,13 @@ static void
destroy_channel (void *cls);
+/**
+ * @brief Schedule the destruction of the given channel.
+ *
+ * Do so only if it was not already scheduled and not during shutdown.
+ *
+ * @param channel_ctx The context of the channel to destroy.
+ */
static void
schedule_channel_destruction (struct ChannelCtx *channel_ctx)
{
@@ -1284,6 +1296,13 @@ schedule_channel_destruction (struct ChannelCtx
*channel_ctx)
}
+/**
+ * @brief Schedule the destruction of the given peer.
+ *
+ * Do so only if it was not already scheduled and not during shutdown.
+ *
+ * @param peer_ctx The context of the peer to destroy.
+ */
static void
schedule_peer_destruction (struct PeerContext *peer_ctx)
{
@@ -1678,6 +1697,11 @@ Peers_destroy_sending_channel (const struct
GNUNET_PeerIdentity *peer)
return GNUNET_NO;
}
+/**
+ * @brief Callback for scheduler to destroy a channel
+ *
+ * @param cls Context of the channel
+ */
static void
destroy_channel (void *cls)
{
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Add docstrings to recently introduced functions,
gnunet <=