diff options
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 24 |
1 files changed, 24 insertions, 0 deletions
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, | |||
1257 | int | 1257 | int |
1258 | Peers_check_channel_flag (uint32_t *channel_flags, enum Peers_ChannelFlags flags); | 1258 | Peers_check_channel_flag (uint32_t *channel_flags, enum Peers_ChannelFlags flags); |
1259 | 1259 | ||
1260 | /** | ||
1261 | * @brief Callback for the scheduler to destroy the knowledge of a peer. | ||
1262 | * | ||
1263 | * @param cls Context of the peer | ||
1264 | */ | ||
1260 | static void | 1265 | static void |
1261 | destroy_peer (void *cls) | 1266 | destroy_peer (void *cls) |
1262 | { | 1267 | { |
@@ -1271,6 +1276,13 @@ static void | |||
1271 | destroy_channel (void *cls); | 1276 | destroy_channel (void *cls); |
1272 | 1277 | ||
1273 | 1278 | ||
1279 | /** | ||
1280 | * @brief Schedule the destruction of the given channel. | ||
1281 | * | ||
1282 | * Do so only if it was not already scheduled and not during shutdown. | ||
1283 | * | ||
1284 | * @param channel_ctx The context of the channel to destroy. | ||
1285 | */ | ||
1274 | static void | 1286 | static void |
1275 | schedule_channel_destruction (struct ChannelCtx *channel_ctx) | 1287 | schedule_channel_destruction (struct ChannelCtx *channel_ctx) |
1276 | { | 1288 | { |
@@ -1284,6 +1296,13 @@ schedule_channel_destruction (struct ChannelCtx *channel_ctx) | |||
1284 | } | 1296 | } |
1285 | 1297 | ||
1286 | 1298 | ||
1299 | /** | ||
1300 | * @brief Schedule the destruction of the given peer. | ||
1301 | * | ||
1302 | * Do so only if it was not already scheduled and not during shutdown. | ||
1303 | * | ||
1304 | * @param peer_ctx The context of the peer to destroy. | ||
1305 | */ | ||
1287 | static void | 1306 | static void |
1288 | schedule_peer_destruction (struct PeerContext *peer_ctx) | 1307 | schedule_peer_destruction (struct PeerContext *peer_ctx) |
1289 | { | 1308 | { |
@@ -1678,6 +1697,11 @@ Peers_destroy_sending_channel (const struct GNUNET_PeerIdentity *peer) | |||
1678 | return GNUNET_NO; | 1697 | return GNUNET_NO; |
1679 | } | 1698 | } |
1680 | 1699 | ||
1700 | /** | ||
1701 | * @brief Callback for scheduler to destroy a channel | ||
1702 | * | ||
1703 | * @param cls Context of the channel | ||
1704 | */ | ||
1681 | static void | 1705 | static void |
1682 | destroy_channel (void *cls) | 1706 | destroy_channel (void *cls) |
1683 | { | 1707 | { |