doxygen
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 25 Oct 2012 15:04:50 +0000 (15:04 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 25 Oct 2012 15:04:50 +0000 (15:04 +0000)
src/ats/gnunet-service-ats_addresses.c
src/ats/gnunet-service-ats_performance.c

index 0d6dd1f8b63e1214146ff30bc076553a8c293662..75c158390c1b9ddf811466fb4c38772915b1a885 100644 (file)
@@ -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)
index 932e7184b14ced1e3a66e05770c698221c5250a9..ba1ee2633eddb20e002591e34822c9c624f0d260 100644 (file)
@@ -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));