aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_transport_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_ats_transport_service.h')
-rw-r--r--src/include/gnunet_ats_transport_service.h37
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 */
46struct GNUNET_ATS_Properties { 46struct 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;
134typedef void 135typedef 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 */
165struct GNUNET_ATS_TransportHandle * 168struct GNUNET_ATS_TransportHandle *
166GNUNET_ATS_transport_init(const struct GNUNET_CONFIGURATION_Handle *cfg, 169GNUNET_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 */
178void 181void
179GNUNET_ATS_transport_done(struct GNUNET_ATS_TransportHandle *ath); 182GNUNET_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 */
202struct GNUNET_ATS_SessionRecord * 205struct GNUNET_ATS_SessionRecord *
203GNUNET_ATS_session_add(struct GNUNET_ATS_TransportHandle *ath, 206GNUNET_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 */
217void 220void
218GNUNET_ATS_session_update(struct GNUNET_ATS_SessionRecord *ar, 221GNUNET_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 */
229void 232void
230GNUNET_ATS_session_del(struct GNUNET_ATS_SessionRecord *ar); 233GNUNET_ATS_session_del (struct GNUNET_ATS_SessionRecord *ar);
231 234
232 235
233#endif 236#endif