From: Matthias Wachs Date: Thu, 25 Oct 2012 15:04:50 +0000 (+0000) Subject: doxygen X-Git-Tag: initial-import-from-subversion-38251~11189 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b4ae5504a5a14f0308c54f083df789bae69bea2;p=oweals%2Fgnunet.git doxygen --- 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, * @param p_it_cls the closure for the iterator */ void -GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator it, void *it_cls) +GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator p_it, void *p_it_cls) { struct PeerIteratorContext ip_ctx; unsigned int size; @@ -1133,8 +1133,9 @@ int peerinfo_it (void *cls, /** * Return all peers currently known to ATS * - * @param p_it the iterator to call for every peer - * @param p_it_cls the closure for the iterator + * @param peer the respective peer + * @param pi_it the iterator to call for every peer + * @param pi_it_cls the closure for the iterator */ void 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, GNUNET_NO); } + static void peerinfo_it (void *cls, const struct GNUNET_PeerIdentity *id, @@ -240,10 +241,18 @@ peerinfo_it (void *cls, } + +/** + * Iterator for GAS_performance_add_client + * + * @param cls the client requesting information + * @param id result + */ static void peer_it (void *cls, const struct GNUNET_PeerIdentity *id) { + struct PerformanceClient *pc = cls; if (NULL != id) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Callback for peer `%s'\n", GNUNET_i2s (id));