diff options
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index dd648dd75..1de3d1041 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -83,10 +83,10 @@ typedef void (*GNUNET_TRANSPORT_ATS_AllocationNotification) (void *cls, | |||
83 | * @param alloc_cb_cls closure for 'alloc_cb' | 83 | * @param alloc_cb_cls closure for 'alloc_cb' |
84 | * @return ats context | 84 | * @return ats context |
85 | */ | 85 | */ |
86 | struct GNUNET_ATS_Handle *GNUNET_ATS_init (const struct | 86 | struct GNUNET_ATS_Handle * |
87 | GNUNET_CONFIGURATION_Handle *cfg, | 87 | GNUNET_ATS_init (const struct GNUNET_CONFIGURATION_Handle *cfg, |
88 | GNUNET_TRANSPORT_ATS_AllocationNotification | 88 | GNUNET_TRANSPORT_ATS_AllocationNotification alloc_cb, |
89 | alloc_cb, void *alloc_cb_cls); | 89 | void *alloc_cb_cls); |
90 | 90 | ||
91 | 91 | ||
92 | /** | 92 | /** |
@@ -94,7 +94,8 @@ struct GNUNET_ATS_Handle *GNUNET_ATS_init (const struct | |||
94 | * | 94 | * |
95 | * @param atc handle | 95 | * @param atc handle |
96 | */ | 96 | */ |
97 | void GNUNET_ATS_shutdown (struct GNUNET_ATS_Handle *atc); | 97 | void |
98 | GNUNET_ATS_shutdown (struct GNUNET_ATS_Handle *atc); | ||
98 | 99 | ||
99 | 100 | ||
100 | /** | 101 | /** |
@@ -140,15 +141,11 @@ struct GNUNET_ATS_SuggestionContext; | |||
140 | * @param cb function to call with the address | 141 | * @param cb function to call with the address |
141 | * @param cb_cls closure for cb | 142 | * @param cb_cls closure for cb |
142 | */ | 143 | */ |
143 | struct GNUNET_ATS_SuggestionContext *GNUNET_ATS_suggest_address (struct | 144 | struct GNUNET_ATS_SuggestionContext * |
144 | GNUNET_ATS_Handle | 145 | GNUNET_ATS_suggest_address (struct GNUNET_ATS_Handle *atc, |
145 | *atc, | 146 | const struct GNUNET_PeerIdentity *peer, |
146 | const struct | 147 | GNUNET_ATS_AddressSuggestionCallback cb, |
147 | GNUNET_PeerIdentity | 148 | void *cb_cls); |
148 | *peer, | ||
149 | GNUNET_ATS_AddressSuggestionCallback | ||
150 | cb, | ||
151 | void *cb_cls); | ||
152 | 149 | ||
153 | 150 | ||
154 | /** | 151 | /** |
@@ -156,8 +153,8 @@ struct GNUNET_ATS_SuggestionContext *GNUNET_ATS_suggest_address (struct | |||
156 | * | 153 | * |
157 | * @param asc handle of the request to cancel | 154 | * @param asc handle of the request to cancel |
158 | */ | 155 | */ |
159 | void GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SuggestionContext | 156 | void |
160 | *asc); | 157 | GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SuggestionContext *asc); |
161 | 158 | ||
162 | 159 | ||
163 | /** | 160 | /** |
@@ -174,12 +171,13 @@ void GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SuggestionContext | |||
174 | * @param ats performance data for the connection | 171 | * @param ats performance data for the connection |
175 | * @param ats_count number of performance records in 'ats' | 172 | * @param ats_count number of performance records in 'ats' |
176 | */ | 173 | */ |
177 | void GNUNET_ATS_peer_connect (struct GNUNET_ATS_Handle *atc, | 174 | void |
178 | const struct GNUNET_PeerIdentity *peer, | 175 | GNUNET_ATS_peer_connect (struct GNUNET_ATS_Handle *atc, |
179 | const char *plugin_name, struct Session *session, | 176 | const struct GNUNET_PeerIdentity *peer, |
180 | const void *plugin_addr, size_t plugin_addr_len, | 177 | const char *plugin_name, struct Session *session, |
181 | const struct GNUNET_TRANSPORT_ATS_Information | 178 | const void *plugin_addr, size_t plugin_addr_len, |
182 | *ats, uint32_t ats_count); | 179 | const struct GNUNET_TRANSPORT_ATS_Information *ats, |
180 | uint32_t ats_count); | ||
183 | 181 | ||
184 | 182 | ||
185 | /** | 183 | /** |
@@ -190,8 +188,9 @@ void GNUNET_ATS_peer_connect (struct GNUNET_ATS_Handle *atc, | |||
190 | * @param atc handle | 188 | * @param atc handle |
191 | * @param peer identity of the peer | 189 | * @param peer identity of the peer |
192 | */ | 190 | */ |
193 | void GNUNET_ATS_peer_disconnect (struct GNUNET_ATS_Handle *atc, | 191 | void |
194 | const struct GNUNET_PeerIdentity *peer); | 192 | GNUNET_ATS_peer_disconnect (struct GNUNET_ATS_Handle *atc, |
193 | const struct GNUNET_PeerIdentity *peer); | ||
195 | 194 | ||
196 | 195 | ||
197 | /** | 196 | /** |
@@ -201,9 +200,10 @@ void GNUNET_ATS_peer_disconnect (struct GNUNET_ATS_Handle *atc, | |||
201 | * @param peer identity of the peer | 200 | * @param peer identity of the peer |
202 | * @param session session handle that is no longer valid | 201 | * @param session session handle that is no longer valid |
203 | */ | 202 | */ |
204 | void GNUNET_ATS_session_destroyed (struct GNUNET_ATS_Handle *atc, | 203 | void |
205 | const struct GNUNET_PeerIdentity *peer, | 204 | GNUNET_ATS_session_destroyed (struct GNUNET_ATS_Handle *atc, |
206 | const struct Session *session); | 205 | const struct GNUNET_PeerIdentity *peer, |
206 | const struct Session *session); | ||
207 | 207 | ||
208 | 208 | ||
209 | /** | 209 | /** |
@@ -224,14 +224,14 @@ void GNUNET_ATS_session_destroyed (struct GNUNET_ATS_Handle *atc, | |||
224 | * @param ats performance data for the address | 224 | * @param ats performance data for the address |
225 | * @param ats_count number of performance records in 'ats' | 225 | * @param ats_count number of performance records in 'ats' |
226 | */ | 226 | */ |
227 | void GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc, | 227 | void |
228 | const struct GNUNET_PeerIdentity *peer, | 228 | GNUNET_ATS_address_update (struct GNUNET_ATS_Handle *atc, |
229 | struct GNUNET_TIME_Absolute valid_until, | 229 | const struct GNUNET_PeerIdentity *peer, |
230 | const char *plugin_name, | 230 | struct GNUNET_TIME_Absolute valid_until, |
231 | struct Session *session, | 231 | const char *plugin_name, struct Session *session, |
232 | const void *plugin_addr, size_t plugin_addr_len, | 232 | const void *plugin_addr, size_t plugin_addr_len, |
233 | const struct GNUNET_TRANSPORT_ATS_Information | 233 | const struct GNUNET_TRANSPORT_ATS_Information *ats, |
234 | *ats, uint32_t ats_count); | 234 | uint32_t ats_count); |
235 | 235 | ||
236 | 236 | ||
237 | #endif | 237 | #endif |