aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r--src/include/gnunet_ats_service.h49
1 files changed, 21 insertions, 28 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index a6149ee5a..dd648dd75 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -156,8 +156,8 @@ struct GNUNET_ATS_SuggestionContext *GNUNET_ATS_suggest_address (struct
156 * 156 *
157 * @param asc handle of the request to cancel 157 * @param asc handle of the request to cancel
158 */ 158 */
159void 159void GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SuggestionContext
160GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SuggestionContext *asc); 160 *asc);
161 161
162 162
163/** 163/**
@@ -174,15 +174,12 @@ GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SuggestionContext *asc);
174 * @param ats performance data for the connection 174 * @param ats performance data for the connection
175 * @param ats_count number of performance records in 'ats' 175 * @param ats_count number of performance records in 'ats'
176 */ 176 */
177void 177void GNUNET_ATS_peer_connect (struct GNUNET_ATS_Handle *atc,
178GNUNET_ATS_peer_connect (struct GNUNET_ATS_Handle *atc, 178 const struct GNUNET_PeerIdentity *peer,
179 const struct GNUNET_PeerIdentity *peer, 179 const char *plugin_name, struct Session *session,
180 const char *plugin_name, 180 const void *plugin_addr, size_t plugin_addr_len,
181 struct Session *session, 181 const struct GNUNET_TRANSPORT_ATS_Information
182 const void *plugin_addr, 182 *ats, uint32_t ats_count);
183 size_t plugin_addr_len,
184 const struct GNUNET_TRANSPORT_ATS_Information *ats,
185 uint32_t ats_count);
186 183
187 184
188/** 185/**
@@ -193,9 +190,8 @@ GNUNET_ATS_peer_connect (struct GNUNET_ATS_Handle *atc,
193 * @param atc handle 190 * @param atc handle
194 * @param peer identity of the peer 191 * @param peer identity of the peer
195 */ 192 */
196void 193void GNUNET_ATS_peer_disconnect (struct GNUNET_ATS_Handle *atc,
197GNUNET_ATS_peer_disconnect (struct GNUNET_ATS_Handle *atc, 194 const struct GNUNET_PeerIdentity *peer);
198 const struct GNUNET_PeerIdentity *peer);
199 195
200 196
201/** 197/**
@@ -205,10 +201,9 @@ GNUNET_ATS_peer_disconnect (struct GNUNET_ATS_Handle *atc,
205 * @param peer identity of the peer 201 * @param peer identity of the peer
206 * @param session session handle that is no longer valid 202 * @param session session handle that is no longer valid
207 */ 203 */
208void 204void GNUNET_ATS_session_destroyed (struct GNUNET_ATS_Handle *atc,
209GNUNET_ATS_session_destroyed (struct GNUNET_ATS_Handle *atc, 205 const struct GNUNET_PeerIdentity *peer,
210 const struct GNUNET_PeerIdentity *peer, 206 const struct Session *session);
211 const struct Session *session);
212 207
213 208
214/** 209/**
@@ -229,16 +224,14 @@ GNUNET_ATS_session_destroyed (struct GNUNET_ATS_Handle *atc,
229 * @param ats performance data for the address 224 * @param ats performance data for the address
230 * @param ats_count number of performance records in 'ats' 225 * @param ats_count number of performance records in 'ats'
231 */ 226 */
232void 227void GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc,
233GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc, 228 const struct GNUNET_PeerIdentity *peer,
234 const struct GNUNET_PeerIdentity *peer, 229 struct GNUNET_TIME_Absolute valid_until,
235 struct GNUNET_TIME_Absolute valid_until, 230 const char *plugin_name,
236 const char *plugin_name, 231 struct Session *session,
237 struct Session *session, 232 const void *plugin_addr, size_t plugin_addr_len,
238 const void *plugin_addr, 233 const struct GNUNET_TRANSPORT_ATS_Information
239 size_t plugin_addr_len, 234 *ats, uint32_t ats_count);
240 const struct GNUNET_TRANSPORT_ATS_Information *ats,
241 uint32_t ats_count);
242 235
243 236
244#endif 237#endif