aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-10-25 14:21:46 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-10-25 14:21:46 +0000
commita7b5be23ee4646fc0a32198e7998e86850dd3576 (patch)
treecbafaf5dc30387856cf350d0c85f85cbe4a2f53b
parentaf589f6478415a13a4c0641497c0cc931ba318ac (diff)
downloadgnunet-a7b5be23ee4646fc0a32198e7998e86850dd3576.tar.gz
gnunet-a7b5be23ee4646fc0a32198e7998e86850dd3576.zip
some docu
-rw-r--r--src/ats/gnunet-service-ats_addresses.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h
index d6b5a72ee..693a7b8d1 100644
--- a/src/ats/gnunet-service-ats_addresses.h
+++ b/src/ats/gnunet-service-ats_addresses.h
@@ -163,15 +163,20 @@ GAS_addresses_add (const struct GNUNET_PeerIdentity *peer,
163 const struct GNUNET_ATS_Information *atsi, 163 const struct GNUNET_ATS_Information *atsi,
164 uint32_t atsi_count); 164 uint32_t atsi_count);
165 165
166/* FIXME: add performance request API */
167 166
168typedef void (*GNUNET_ATS_Peer_Iterator) (void *cls, 167typedef void (*GNUNET_ATS_Peer_Iterator) (void *p_it_cls,
169 const struct GNUNET_PeerIdentity *id); 168 const struct GNUNET_PeerIdentity *id);
170 169
170/**
171 * Return all peers currently known to ATS
172 *
173 * @param p_it the iterator to call for every peer
174 * @param p_it_cls the closure for the iterator
175 */
171void 176void
172GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator p_it, void *cls); 177GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator p_it, void *p_it_cls);
173 178
174typedef void (*GNUNET_ATS_PeerInfo_Iterator) (void *cls, 179typedef void (*GNUNET_ATS_PeerInfo_Iterator) (void *p_it_cls,
175 const struct GNUNET_PeerIdentity *id, 180 const struct GNUNET_PeerIdentity *id,
176 const char *plugin_name, 181 const char *plugin_name,
177 const void *plugin_addr, size_t plugin_addr_len, 182 const void *plugin_addr, size_t plugin_addr_len,
@@ -181,6 +186,12 @@ typedef void (*GNUNET_ATS_PeerInfo_Iterator) (void *cls,
181 bandwidth_out, 186 bandwidth_out,
182 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); 187 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in);
183 188
189/**
190 * Return all peers currently known to ATS
191 *
192 * @param p_it the iterator to call for every peer
193 * @param p_it_cls the closure for the iterator
194 */
184void 195void
185GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it, void *pi_it_cls); 196GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it, void *pi_it_cls);
186 197