diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-10-25 14:21:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-10-25 14:21:46 +0000 |
commit | a7b5be23ee4646fc0a32198e7998e86850dd3576 (patch) | |
tree | cbafaf5dc30387856cf350d0c85f85cbe4a2f53b /src | |
parent | af589f6478415a13a4c0641497c0cc931ba318ac (diff) | |
download | gnunet-a7b5be23ee4646fc0a32198e7998e86850dd3576.tar.gz gnunet-a7b5be23ee4646fc0a32198e7998e86850dd3576.zip |
some docu
Diffstat (limited to 'src')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 19 |
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 | ||
168 | typedef void (*GNUNET_ATS_Peer_Iterator) (void *cls, | 167 | typedef 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 | */ | ||
171 | void | 176 | void |
172 | GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator p_it, void *cls); | 177 | GAS_addresses_iterate_peers (GNUNET_ATS_Peer_Iterator p_it, void *p_it_cls); |
173 | 178 | ||
174 | typedef void (*GNUNET_ATS_PeerInfo_Iterator) (void *cls, | 179 | typedef 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 | */ | ||
184 | void | 195 | void |
185 | GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it, void *pi_it_cls); | 196 | GAS_addresses_get_peer_info (const struct GNUNET_PeerIdentity *peer, GNUNET_ATS_PeerInfo_Iterator pi_it, void *pi_it_cls); |
186 | 197 | ||