diff options
Diffstat (limited to 'src/include/gnunet_ats_transport_service.h')
-rw-r--r-- | src/include/gnunet_ats_transport_service.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/include/gnunet_ats_transport_service.h b/src/include/gnunet_ats_transport_service.h index 67138ae92..b5848a36a 100644 --- a/src/include/gnunet_ats_transport_service.h +++ b/src/include/gnunet_ats_transport_service.h | |||
@@ -43,7 +43,8 @@ | |||
43 | /** | 43 | /** |
44 | * ATS performance characteristics for a session. | 44 | * ATS performance characteristics for a session. |
45 | */ | 45 | */ |
46 | struct GNUNET_ATS_Properties { | 46 | struct GNUNET_ATS_Properties |
47 | { | ||
47 | /** | 48 | /** |
48 | * Delay. Time between when the time packet is sent and the packet | 49 | * Delay. Time between when the time packet is sent and the packet |
49 | * arrives. FOREVER if we did not (successfully) measure yet. | 50 | * arrives. FOREVER if we did not (successfully) measure yet. |
@@ -134,8 +135,10 @@ struct GNUNET_ATS_Session; | |||
134 | typedef void | 135 | typedef void |
135 | (*GNUNET_ATS_AllocationCallback) (void *cls, | 136 | (*GNUNET_ATS_AllocationCallback) (void *cls, |
136 | struct GNUNET_ATS_Session *session, | 137 | struct GNUNET_ATS_Session *session, |
137 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 138 | struct GNUNET_BANDWIDTH_Value32NBO |
138 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); | 139 | bandwidth_out, |
140 | struct GNUNET_BANDWIDTH_Value32NBO | ||
141 | bandwidth_in); | ||
139 | 142 | ||
140 | 143 | ||
141 | /** | 144 | /** |
@@ -163,11 +166,11 @@ typedef void | |||
163 | * @return ats context | 166 | * @return ats context |
164 | */ | 167 | */ |
165 | struct GNUNET_ATS_TransportHandle * | 168 | struct GNUNET_ATS_TransportHandle * |
166 | GNUNET_ATS_transport_init(const struct GNUNET_CONFIGURATION_Handle *cfg, | 169 | GNUNET_ATS_transport_init (const struct GNUNET_CONFIGURATION_Handle *cfg, |
167 | GNUNET_ATS_AllocationCallback alloc_cb, | 170 | GNUNET_ATS_AllocationCallback alloc_cb, |
168 | void *alloc_cb_cls, | 171 | void *alloc_cb_cls, |
169 | GNUNET_ATS_SuggestionCallback suggest_cb, | 172 | GNUNET_ATS_SuggestionCallback suggest_cb, |
170 | void *suggest_cb_cls); | 173 | void *suggest_cb_cls); |
171 | 174 | ||
172 | 175 | ||
173 | /** | 176 | /** |
@@ -176,7 +179,7 @@ GNUNET_ATS_transport_init(const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
176 | * @param ath handle to release | 179 | * @param ath handle to release |
177 | */ | 180 | */ |
178 | void | 181 | void |
179 | GNUNET_ATS_transport_done(struct GNUNET_ATS_TransportHandle *ath); | 182 | GNUNET_ATS_transport_done (struct GNUNET_ATS_TransportHandle *ath); |
180 | 183 | ||
181 | 184 | ||
182 | /** | 185 | /** |
@@ -200,11 +203,11 @@ struct GNUNET_ATS_SessionRecord; | |||
200 | * session is invalid) | 203 | * session is invalid) |
201 | */ | 204 | */ |
202 | struct GNUNET_ATS_SessionRecord * | 205 | struct GNUNET_ATS_SessionRecord * |
203 | GNUNET_ATS_session_add(struct GNUNET_ATS_TransportHandle *ath, | 206 | GNUNET_ATS_session_add (struct GNUNET_ATS_TransportHandle *ath, |
204 | const struct GNUNET_PeerIdentity *pid, | 207 | const struct GNUNET_PeerIdentity *pid, |
205 | const char *address, | 208 | const char *address, |
206 | struct GNUNET_ATS_Session *session, | 209 | struct GNUNET_ATS_Session *session, |
207 | const struct GNUNET_ATS_Properties *prop); | 210 | const struct GNUNET_ATS_Properties *prop); |
208 | 211 | ||
209 | 212 | ||
210 | /** | 213 | /** |
@@ -215,8 +218,8 @@ GNUNET_ATS_session_add(struct GNUNET_ATS_TransportHandle *ath, | |||
215 | * @param prop performance data for the session | 218 | * @param prop performance data for the session |
216 | */ | 219 | */ |
217 | void | 220 | void |
218 | GNUNET_ATS_session_update(struct GNUNET_ATS_SessionRecord *ar, | 221 | GNUNET_ATS_session_update (struct GNUNET_ATS_SessionRecord *ar, |
219 | const struct GNUNET_ATS_Properties *prop); | 222 | const struct GNUNET_ATS_Properties *prop); |
220 | 223 | ||
221 | 224 | ||
222 | /** | 225 | /** |
@@ -227,7 +230,7 @@ GNUNET_ATS_session_update(struct GNUNET_ATS_SessionRecord *ar, | |||
227 | * @param ar session record to drop | 230 | * @param ar session record to drop |
228 | */ | 231 | */ |
229 | void | 232 | void |
230 | GNUNET_ATS_session_del(struct GNUNET_ATS_SessionRecord *ar); | 233 | GNUNET_ATS_session_del (struct GNUNET_ATS_SessionRecord *ar); |
231 | 234 | ||
232 | 235 | ||
233 | #endif | 236 | #endif |