summaryrefslogtreecommitdiff
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.h57
1 files changed, 27 insertions, 30 deletions
diff --git a/src/include/gnunet_ats_transport_service.h b/src/include/gnunet_ats_transport_service.h
index 287f0600d..67138ae92 100644
--- a/src/include/gnunet_ats_transport_service.h
+++ b/src/include/gnunet_ats_transport_service.h
@@ -1,19 +1,19 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2010-2015, 2018 GNUnet e.V. 3 Copyright (C) 2010-2015, 2018 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License, 7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version. 8 or (at your option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
@@ -43,9 +43,7 @@
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{
48
49 /** 47 /**
50 * Delay. Time between when the time packet is sent and the packet 48 * Delay. Time between when the time packet is sent and the packet
51 * arrives. FOREVER if we did not (successfully) measure yet. 49 * arrives. FOREVER if we did not (successfully) measure yet.
@@ -106,7 +104,6 @@ struct GNUNET_ATS_Properties
106 * What characteristics does this communicator have? 104 * What characteristics does this communicator have?
107 */ 105 */
108 enum GNUNET_TRANSPORT_CommunicatorCharacteristics cc; 106 enum GNUNET_TRANSPORT_CommunicatorCharacteristics cc;
109
110}; 107};
111 108
112 109
@@ -166,11 +163,11 @@ typedef void
166 * @return ats context 163 * @return ats context
167 */ 164 */
168struct GNUNET_ATS_TransportHandle * 165struct GNUNET_ATS_TransportHandle *
169GNUNET_ATS_transport_init (const struct GNUNET_CONFIGURATION_Handle *cfg, 166GNUNET_ATS_transport_init(const struct GNUNET_CONFIGURATION_Handle *cfg,
170 GNUNET_ATS_AllocationCallback alloc_cb, 167 GNUNET_ATS_AllocationCallback alloc_cb,
171 void *alloc_cb_cls, 168 void *alloc_cb_cls,
172 GNUNET_ATS_SuggestionCallback suggest_cb, 169 GNUNET_ATS_SuggestionCallback suggest_cb,
173 void *suggest_cb_cls); 170 void *suggest_cb_cls);
174 171
175 172
176/** 173/**
@@ -179,7 +176,7 @@ GNUNET_ATS_transport_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
179 * @param ath handle to release 176 * @param ath handle to release
180 */ 177 */
181void 178void
182GNUNET_ATS_transport_done (struct GNUNET_ATS_TransportHandle *ath); 179GNUNET_ATS_transport_done(struct GNUNET_ATS_TransportHandle *ath);
183 180
184 181
185/** 182/**
@@ -203,11 +200,11 @@ struct GNUNET_ATS_SessionRecord;
203 * session is invalid) 200 * session is invalid)
204 */ 201 */
205struct GNUNET_ATS_SessionRecord * 202struct GNUNET_ATS_SessionRecord *
206GNUNET_ATS_session_add (struct GNUNET_ATS_TransportHandle *ath, 203GNUNET_ATS_session_add(struct GNUNET_ATS_TransportHandle *ath,
207 const struct GNUNET_PeerIdentity *pid, 204 const struct GNUNET_PeerIdentity *pid,
208 const char *address, 205 const char *address,
209 struct GNUNET_ATS_Session *session, 206 struct GNUNET_ATS_Session *session,
210 const struct GNUNET_ATS_Properties *prop); 207 const struct GNUNET_ATS_Properties *prop);
211 208
212 209
213/** 210/**
@@ -218,8 +215,8 @@ GNUNET_ATS_session_add (struct GNUNET_ATS_TransportHandle *ath,
218 * @param prop performance data for the session 215 * @param prop performance data for the session
219 */ 216 */
220void 217void
221GNUNET_ATS_session_update (struct GNUNET_ATS_SessionRecord *ar, 218GNUNET_ATS_session_update(struct GNUNET_ATS_SessionRecord *ar,
222 const struct GNUNET_ATS_Properties *prop); 219 const struct GNUNET_ATS_Properties *prop);
223 220
224 221
225/** 222/**
@@ -230,7 +227,7 @@ GNUNET_ATS_session_update (struct GNUNET_ATS_SessionRecord *ar,
230 * @param ar session record to drop 227 * @param ar session record to drop
231 */ 228 */
232void 229void
233GNUNET_ATS_session_del (struct GNUNET_ATS_SessionRecord *ar); 230GNUNET_ATS_session_del(struct GNUNET_ATS_SessionRecord *ar);
234 231
235 232
236#endif 233#endif