diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/include/gnunet_ats_transport_service.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/include/gnunet_ats_transport_service.h')
-rw-r--r-- | src/include/gnunet_ats_transport_service.h | 57 |
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 | */ |
46 | struct GNUNET_ATS_Properties | 46 | struct 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 | */ |
168 | struct GNUNET_ATS_TransportHandle * | 165 | struct GNUNET_ATS_TransportHandle * |
169 | GNUNET_ATS_transport_init (const struct GNUNET_CONFIGURATION_Handle *cfg, | 166 | GNUNET_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 | */ |
181 | void | 178 | void |
182 | GNUNET_ATS_transport_done (struct GNUNET_ATS_TransportHandle *ath); | 179 | GNUNET_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 | */ |
205 | struct GNUNET_ATS_SessionRecord * | 202 | struct GNUNET_ATS_SessionRecord * |
206 | GNUNET_ATS_session_add (struct GNUNET_ATS_TransportHandle *ath, | 203 | GNUNET_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 | */ |
220 | void | 217 | void |
221 | GNUNET_ATS_session_update (struct GNUNET_ATS_SessionRecord *ar, | 218 | GNUNET_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 | */ |
232 | void | 229 | void |
233 | GNUNET_ATS_session_del (struct GNUNET_ATS_SessionRecord *ar); | 230 | GNUNET_ATS_session_del(struct GNUNET_ATS_SessionRecord *ar); |
234 | 231 | ||
235 | 232 | ||
236 | #endif | 233 | #endif |