aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-10-25 15:04:50 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-10-25 15:04:50 +0000
commit2b4ae5504a5a14f0308c54f083df789bae69bea2 (patch)
tree61865c850d54485cc613d70df0264637cc1b2921
parenta3840acef308e54efa2a33180d47a0772c12919b (diff)
downloadgnunet-2b4ae5504a5a14f0308c54f083df789bae69bea2.tar.gz
gnunet-2b4ae5504a5a14f0308c54f083df789bae69bea2.zip
doxygen
-rw-r--r--src/ats/gnunet-service-ats_addresses.c7
-rw-r--r--src/ats/gnunet-service-ats_performance.c9
2 files changed, 13 insertions, 3 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c
index 0d6dd1f8b..75c158390 100644
--- a/src/ats/gnunet-service-ats_addresses.c
+++ b/src/ats/gnunet-service-ats_addresses.c
@@ -1085,7 +1085,7 @@ peer_it (void *cls,
1085 * @param p_it_cls the closure for the iterator 1085 * @param p_it_cls the closure for the iterator
1086 */ 1086 */
1087void 1087void
1088GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator it, void *it_cls) 1088GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator p_it, void *p_it_cls)
1089{ 1089{
1090 struct PeerIteratorContext ip_ctx; 1090 struct PeerIteratorContext ip_ctx;
1091 unsigned int size; 1091 unsigned int size;
@@ -1133,8 +1133,9 @@ int peerinfo_it (void *cls,
1133/** 1133/**
1134 * Return all peers currently known to ATS 1134 * Return all peers currently known to ATS
1135 * 1135 *
1136 * @param p_it the iterator to call for every peer 1136 * @param peer the respective peer
1137 * @param p_it_cls the closure for the iterator 1137 * @param pi_it the iterator to call for every peer
1138 * @param pi_it_cls the closure for the iterator
1138 */ 1139 */
1139void 1140void
1140GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it, void *pi_it_cls) 1141GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it, void *pi_it_cls)
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c
index 932e7184b..ba1ee2633 100644
--- a/src/ats/gnunet-service-ats_performance.c
+++ b/src/ats/gnunet-service-ats_performance.c
@@ -214,6 +214,7 @@ GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer,
214 GNUNET_NO); 214 GNUNET_NO);
215} 215}
216 216
217
217static void 218static void
218peerinfo_it (void *cls, 219peerinfo_it (void *cls,
219 const struct GNUNET_PeerIdentity *id, 220 const struct GNUNET_PeerIdentity *id,
@@ -240,10 +241,18 @@ peerinfo_it (void *cls,
240 241
241} 242}
242 243
244
245/**
246 * Iterator for GAS_performance_add_client
247 *
248 * @param cls the client requesting information
249 * @param id result
250 */
243static void 251static void
244peer_it (void *cls, 252peer_it (void *cls,
245 const struct GNUNET_PeerIdentity *id) 253 const struct GNUNET_PeerIdentity *id)
246{ 254{
255 struct PerformanceClient *pc = cls;
247 if (NULL != id) 256 if (NULL != id)
248 { 257 {
249 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Callback for peer `%s'\n", GNUNET_i2s (id)); 258 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Callback for peer `%s'\n", GNUNET_i2s (id));