diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-10-25 15:04:50 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-10-25 15:04:50 +0000 |
commit | 2b4ae5504a5a14f0308c54f083df789bae69bea2 (patch) | |
tree | 61865c850d54485cc613d70df0264637cc1b2921 | |
parent | a3840acef308e54efa2a33180d47a0772c12919b (diff) | |
download | gnunet-2b4ae5504a5a14f0308c54f083df789bae69bea2.tar.gz gnunet-2b4ae5504a5a14f0308c54f083df789bae69bea2.zip |
doxygen
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 7 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 9 |
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 | */ |
1087 | void | 1087 | void |
1088 | GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator it, void *it_cls) | 1088 | GAS_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 | */ |
1139 | void | 1140 | void |
1140 | GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it, void *pi_it_cls) | 1141 | GAS_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 | |||
217 | static void | 218 | static void |
218 | peerinfo_it (void *cls, | 219 | peerinfo_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 | */ | ||
243 | static void | 251 | static void |
244 | peer_it (void *cls, | 252 | peer_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)); |