diff options
Diffstat (limited to 'src/rps/gnunet-service-rps_custommap.c')
-rw-r--r-- | src/rps/gnunet-service-rps_custommap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps_custommap.c b/src/rps/gnunet-service-rps_custommap.c index 8fcfc5558..54e361d32 100644 --- a/src/rps/gnunet-service-rps_custommap.c +++ b/src/rps/gnunet-service-rps_custommap.c | |||
@@ -87,6 +87,7 @@ CustomPeerMap_create (unsigned int len) | |||
87 | return c_peer_map; | 87 | return c_peer_map; |
88 | } | 88 | } |
89 | 89 | ||
90 | |||
90 | /** | 91 | /** |
91 | * Get the size of the custom peer map | 92 | * Get the size of the custom peer map |
92 | * | 93 | * |
@@ -102,6 +103,7 @@ CustomPeerMap_size (const struct CustomPeerMap *c_peer_map) | |||
102 | return GNUNET_CONTAINER_multipeermap_size (c_peer_map->peer_map); | 103 | return GNUNET_CONTAINER_multipeermap_size (c_peer_map->peer_map); |
103 | } | 104 | } |
104 | 105 | ||
106 | |||
105 | /** | 107 | /** |
106 | * Insert peer into the custom peer map | 108 | * Insert peer into the custom peer map |
107 | * | 109 | * |
@@ -149,6 +151,7 @@ CustomPeerMap_put (const struct CustomPeerMap *c_peer_map, | |||
149 | return GNUNET_NO; | 151 | return GNUNET_NO; |
150 | } | 152 | } |
151 | 153 | ||
154 | |||
152 | /** | 155 | /** |
153 | * Check whether custom peer map contains a peer | 156 | * Check whether custom peer map contains a peer |
154 | * | 157 | * |
@@ -165,6 +168,7 @@ CustomPeerMap_contains_peer (const struct CustomPeerMap *c_peer_map, | |||
165 | return GNUNET_CONTAINER_multipeermap_contains (c_peer_map->peer_map, peer); | 168 | return GNUNET_CONTAINER_multipeermap_contains (c_peer_map->peer_map, peer); |
166 | } | 169 | } |
167 | 170 | ||
171 | |||
168 | /** | 172 | /** |
169 | * Get index of peer in custom peer map | 173 | * Get index of peer in custom peer map |
170 | * | 174 | * |
@@ -184,6 +188,7 @@ CustomPeerMap_get_index_pointer (const struct CustomPeerMap *c_peer_map, | |||
184 | return index; | 188 | return index; |
185 | } | 189 | } |
186 | 190 | ||
191 | |||
187 | /** | 192 | /** |
188 | * Remove peer from custom peer map | 193 | * Remove peer from custom peer map |
189 | * | 194 | * |
@@ -243,6 +248,7 @@ CustomPeerMap_remove_peer (const struct CustomPeerMap *c_peer_map, | |||
243 | return GNUNET_OK; | 248 | return GNUNET_OK; |
244 | } | 249 | } |
245 | 250 | ||
251 | |||
246 | /** | 252 | /** |
247 | * Get a peer by index | 253 | * Get a peer by index |
248 | * | 254 | * |
@@ -264,6 +270,7 @@ CustomPeerMap_get_peer_by_index (const struct CustomPeerMap *c_peer_map, | |||
264 | return NULL; | 270 | return NULL; |
265 | } | 271 | } |
266 | 272 | ||
273 | |||
267 | /** | 274 | /** |
268 | * Remove peer from custom peer map by index | 275 | * Remove peer from custom peer map by index |
269 | * | 276 | * |
@@ -301,6 +308,7 @@ CustomPeerMap_remove_peer_by_index (const struct CustomPeerMap *c_peer_map, | |||
301 | return GNUNET_OK; | 308 | return GNUNET_OK; |
302 | } | 309 | } |
303 | 310 | ||
311 | |||
304 | /** | 312 | /** |
305 | * Clear the custom peer map | 313 | * Clear the custom peer map |
306 | * | 314 | * |
@@ -326,6 +334,7 @@ CustomPeerMap_clear (const struct CustomPeerMap *c_peer_map) | |||
326 | GNUNET_assert (0 == CustomPeerMap_size (c_peer_map)); | 334 | GNUNET_assert (0 == CustomPeerMap_size (c_peer_map)); |
327 | } | 335 | } |
328 | 336 | ||
337 | |||
329 | /** | 338 | /** |
330 | * Destroy peermap. | 339 | * Destroy peermap. |
331 | * | 340 | * |
@@ -340,4 +349,5 @@ CustomPeerMap_destroy (struct CustomPeerMap *c_peer_map) | |||
340 | GNUNET_free (c_peer_map); | 349 | GNUNET_free (c_peer_map); |
341 | } | 350 | } |
342 | 351 | ||
352 | |||
343 | /* end of gnunet-service-rps_custommap.c */ | 353 | /* end of gnunet-service-rps_custommap.c */ |