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/cadet/gnunet-service-cadet_peer.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.h | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h index 4eee7e9e8..09c6f64c9 100644 --- a/src/cadet/gnunet-service-cadet_peer.h +++ b/src/cadet/gnunet-service-cadet_peer.h | |||
@@ -11,12 +11,12 @@ | |||
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 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file cadet/gnunet-service-cadet_peer.h | 22 | * @file cadet/gnunet-service-cadet_peer.h |
@@ -39,7 +39,7 @@ | |||
39 | * @return Static string for it's ID. | 39 | * @return Static string for it's ID. |
40 | */ | 40 | */ |
41 | const char * | 41 | const char * |
42 | GCP_2s (const struct CadetPeer *peer); | 42 | GCP_2s(const struct CadetPeer *peer); |
43 | 43 | ||
44 | 44 | ||
45 | /** | 45 | /** |
@@ -54,8 +54,8 @@ GCP_2s (const struct CadetPeer *peer); | |||
54 | * NULL if unknown and not requested @a create | 54 | * NULL if unknown and not requested @a create |
55 | */ | 55 | */ |
56 | struct CadetPeer * | 56 | struct CadetPeer * |
57 | GCP_get (const struct GNUNET_PeerIdentity *peer_id, | 57 | GCP_get(const struct GNUNET_PeerIdentity *peer_id, |
58 | int create); | 58 | int create); |
59 | 59 | ||
60 | 60 | ||
61 | /** | 61 | /** |
@@ -68,8 +68,8 @@ GCP_get (const struct GNUNET_PeerIdentity *peer_id, | |||
68 | * positive scores mean path is more desirable | 68 | * positive scores mean path is more desirable |
69 | */ | 69 | */ |
70 | double | 70 | double |
71 | GCP_get_desirability_of_path (struct CadetPeer *cp, | 71 | GCP_get_desirability_of_path(struct CadetPeer *cp, |
72 | unsigned int off); | 72 | unsigned int off); |
73 | 73 | ||
74 | 74 | ||
75 | /** | 75 | /** |
@@ -79,7 +79,7 @@ GCP_get_desirability_of_path (struct CadetPeer *cp, | |||
79 | * @return the peer identity | 79 | * @return the peer identity |
80 | */ | 80 | */ |
81 | const struct GNUNET_PeerIdentity * | 81 | const struct GNUNET_PeerIdentity * |
82 | GCP_get_id (struct CadetPeer *cp); | 82 | GCP_get_id(struct CadetPeer *cp); |
83 | 83 | ||
84 | 84 | ||
85 | /** | 85 | /** |
@@ -89,8 +89,8 @@ GCP_get_id (struct CadetPeer *cp); | |||
89 | * @param cls Closure for @c iter. | 89 | * @param cls Closure for @c iter. |
90 | */ | 90 | */ |
91 | void | 91 | void |
92 | GCP_iterate_all (GNUNET_CONTAINER_PeerMapIterator iter, | 92 | GCP_iterate_all(GNUNET_CONTAINER_PeerMapIterator iter, |
93 | void *cls); | 93 | void *cls); |
94 | 94 | ||
95 | 95 | ||
96 | /** | 96 | /** |
@@ -100,7 +100,7 @@ GCP_iterate_all (GNUNET_CONTAINER_PeerMapIterator iter, | |||
100 | * @return Number of known paths. | 100 | * @return Number of known paths. |
101 | */ | 101 | */ |
102 | unsigned int | 102 | unsigned int |
103 | GCP_count_paths (const struct CadetPeer *cp); | 103 | GCP_count_paths(const struct CadetPeer *cp); |
104 | 104 | ||
105 | 105 | ||
106 | /** | 106 | /** |
@@ -110,7 +110,7 @@ GCP_count_paths (const struct CadetPeer *cp); | |||
110 | * @param cp peer to drop paths to | 110 | * @param cp peer to drop paths to |
111 | */ | 111 | */ |
112 | void | 112 | void |
113 | GCP_drop_owned_paths (struct CadetPeer *cp); | 113 | GCP_drop_owned_paths(struct CadetPeer *cp); |
114 | 114 | ||
115 | 115 | ||
116 | /** | 116 | /** |
@@ -137,9 +137,9 @@ typedef int | |||
137 | * @return Number of iterated paths. | 137 | * @return Number of iterated paths. |
138 | */ | 138 | */ |
139 | unsigned int | 139 | unsigned int |
140 | GCP_iterate_paths (struct CadetPeer *cp, | 140 | GCP_iterate_paths(struct CadetPeer *cp, |
141 | GCP_PathIterator callback, | 141 | GCP_PathIterator callback, |
142 | void *callback_cls); | 142 | void *callback_cls); |
143 | 143 | ||
144 | /** | 144 | /** |
145 | * Iterate over the paths to a peer without direct link. | 145 | * Iterate over the paths to a peer without direct link. |
@@ -150,9 +150,9 @@ GCP_iterate_paths (struct CadetPeer *cp, | |||
150 | * @return Number of iterated paths. | 150 | * @return Number of iterated paths. |
151 | */ | 151 | */ |
152 | unsigned int | 152 | unsigned int |
153 | GCP_iterate_indirect_paths (struct CadetPeer *cp, | 153 | GCP_iterate_indirect_paths(struct CadetPeer *cp, |
154 | GCP_PathIterator callback, | 154 | GCP_PathIterator callback, |
155 | void *callback_cls); | 155 | void *callback_cls); |
156 | 156 | ||
157 | 157 | ||
158 | /** | 158 | /** |
@@ -166,10 +166,10 @@ GCP_iterate_indirect_paths (struct CadetPeer *cp, | |||
166 | * @return Number of iterated paths. | 166 | * @return Number of iterated paths. |
167 | */ | 167 | */ |
168 | unsigned int | 168 | unsigned int |
169 | GCP_iterate_paths_at (struct CadetPeer *cp, | 169 | GCP_iterate_paths_at(struct CadetPeer *cp, |
170 | unsigned int dist, | 170 | unsigned int dist, |
171 | GCP_PathIterator callback, | 171 | GCP_PathIterator callback, |
172 | void *callback_cls); | 172 | void *callback_cls); |
173 | 173 | ||
174 | 174 | ||
175 | /** | 175 | /** |
@@ -180,9 +180,9 @@ GCP_iterate_paths_at (struct CadetPeer *cp, | |||
180 | * @param off offset of this peer on the path | 180 | * @param off offset of this peer on the path |
181 | */ | 181 | */ |
182 | void | 182 | void |
183 | GCP_path_entry_remove (struct CadetPeer *cp, | 183 | GCP_path_entry_remove(struct CadetPeer *cp, |
184 | struct CadetPeerPathEntry *entry, | 184 | struct CadetPeerPathEntry *entry, |
185 | unsigned int off); | 185 | unsigned int off); |
186 | 186 | ||
187 | 187 | ||
188 | /** | 188 | /** |
@@ -193,9 +193,9 @@ GCP_path_entry_remove (struct CadetPeer *cp, | |||
193 | * @param off offset of this peer on the path | 193 | * @param off offset of this peer on the path |
194 | */ | 194 | */ |
195 | void | 195 | void |
196 | GCP_path_entry_add (struct CadetPeer *cp, | 196 | GCP_path_entry_add(struct CadetPeer *cp, |
197 | struct CadetPeerPathEntry *entry, | 197 | struct CadetPeerPathEntry *entry, |
198 | unsigned int off); | 198 | unsigned int off); |
199 | 199 | ||
200 | 200 | ||
201 | /** | 201 | /** |
@@ -206,8 +206,8 @@ GCP_path_entry_add (struct CadetPeer *cp, | |||
206 | * @return Tunnel towards peer. | 206 | * @return Tunnel towards peer. |
207 | */ | 207 | */ |
208 | struct CadetTunnel * | 208 | struct CadetTunnel * |
209 | GCP_get_tunnel (struct CadetPeer *cp, | 209 | GCP_get_tunnel(struct CadetPeer *cp, |
210 | int create); | 210 | int create); |
211 | 211 | ||
212 | 212 | ||
213 | /** | 213 | /** |
@@ -218,8 +218,8 @@ GCP_get_tunnel (struct CadetPeer *cp, | |||
218 | * @param t the dead tunnel | 218 | * @param t the dead tunnel |
219 | */ | 219 | */ |
220 | void | 220 | void |
221 | GCP_drop_tunnel (struct CadetPeer *cp, | 221 | GCP_drop_tunnel(struct CadetPeer *cp, |
222 | struct CadetTunnel *t); | 222 | struct CadetTunnel *t); |
223 | 223 | ||
224 | 224 | ||
225 | /** | 225 | /** |
@@ -234,10 +234,10 @@ GCP_drop_tunnel (struct CadetPeer *cp, | |||
234 | * otherwise the node in the peer's path heap for the @a path. | 234 | * otherwise the node in the peer's path heap for the @a path. |
235 | */ | 235 | */ |
236 | struct GNUNET_CONTAINER_HeapNode * | 236 | struct GNUNET_CONTAINER_HeapNode * |
237 | GCP_attach_path (struct CadetPeer *cp, | 237 | GCP_attach_path(struct CadetPeer *cp, |
238 | struct CadetPeerPath *path, | 238 | struct CadetPeerPath *path, |
239 | unsigned int off, | 239 | unsigned int off, |
240 | int force); | 240 | int force); |
241 | 241 | ||
242 | 242 | ||
243 | /** | 243 | /** |
@@ -250,9 +250,9 @@ GCP_attach_path (struct CadetPeer *cp, | |||
250 | * @param hn note in @a cp's path heap that must be deleted | 250 | * @param hn note in @a cp's path heap that must be deleted |
251 | */ | 251 | */ |
252 | void | 252 | void |
253 | GCP_detach_path (struct CadetPeer *cp, | 253 | GCP_detach_path(struct CadetPeer *cp, |
254 | struct CadetPeerPath *path, | 254 | struct CadetPeerPath *path, |
255 | struct GNUNET_CONTAINER_HeapNode *hn); | 255 | struct GNUNET_CONTAINER_HeapNode *hn); |
256 | 256 | ||
257 | 257 | ||
258 | /** | 258 | /** |
@@ -262,8 +262,8 @@ GCP_detach_path (struct CadetPeer *cp, | |||
262 | * @param cc the connection to add | 262 | * @param cc the connection to add |
263 | */ | 263 | */ |
264 | void | 264 | void |
265 | GCP_add_connection (struct CadetPeer *cp, | 265 | GCP_add_connection(struct CadetPeer *cp, |
266 | struct CadetConnection *cc); | 266 | struct CadetConnection *cc); |
267 | 267 | ||
268 | 268 | ||
269 | /** | 269 | /** |
@@ -273,8 +273,8 @@ GCP_add_connection (struct CadetPeer *cp, | |||
273 | * @param cc the connection to remove | 273 | * @param cc the connection to remove |
274 | */ | 274 | */ |
275 | void | 275 | void |
276 | GCP_remove_connection (struct CadetPeer *cp, | 276 | GCP_remove_connection(struct CadetPeer *cp, |
277 | struct CadetConnection *cc); | 277 | struct CadetConnection *cc); |
278 | 278 | ||
279 | 279 | ||
280 | /** | 280 | /** |
@@ -285,8 +285,8 @@ GCP_remove_connection (struct CadetPeer *cp, | |||
285 | * @param hello the HELLO to remember | 285 | * @param hello the HELLO to remember |
286 | */ | 286 | */ |
287 | void | 287 | void |
288 | GCP_set_hello (struct CadetPeer *cp, | 288 | GCP_set_hello(struct CadetPeer *cp, |
289 | const struct GNUNET_HELLO_Message *hello); | 289 | const struct GNUNET_HELLO_Message *hello); |
290 | 290 | ||
291 | 291 | ||
292 | /** | 292 | /** |
@@ -295,7 +295,7 @@ GCP_set_hello (struct CadetPeer *cp, | |||
295 | * connections are down. | 295 | * connections are down. |
296 | */ | 296 | */ |
297 | void | 297 | void |
298 | GCP_destroy_all_peers (void); | 298 | GCP_destroy_all_peers(void); |
299 | 299 | ||
300 | 300 | ||
301 | /** | 301 | /** |
@@ -334,9 +334,9 @@ typedef void | |||
334 | * @return handle to cancel request | 334 | * @return handle to cancel request |
335 | */ | 335 | */ |
336 | struct GCP_MessageQueueManager * | 336 | struct GCP_MessageQueueManager * |
337 | GCP_request_mq (struct CadetPeer *cp, | 337 | GCP_request_mq(struct CadetPeer *cp, |
338 | GCP_MessageQueueNotificationCallback cb, | 338 | GCP_MessageQueueNotificationCallback cb, |
339 | void *cb_cls); | 339 | void *cb_cls); |
340 | 340 | ||
341 | 341 | ||
342 | /** | 342 | /** |
@@ -346,7 +346,7 @@ GCP_request_mq (struct CadetPeer *cp, | |||
346 | * @return #GNUNET_YES if @a cp has a core-level connection | 346 | * @return #GNUNET_YES if @a cp has a core-level connection |
347 | */ | 347 | */ |
348 | int | 348 | int |
349 | GCP_has_core_connection (struct CadetPeer *cp); | 349 | GCP_has_core_connection(struct CadetPeer *cp); |
350 | 350 | ||
351 | 351 | ||
352 | /** | 352 | /** |
@@ -361,8 +361,8 @@ GCP_has_core_connection (struct CadetPeer *cp); | |||
361 | * yet have a #GNUNET_MQ_notify_sent() callback attached to it | 361 | * yet have a #GNUNET_MQ_notify_sent() callback attached to it |
362 | */ | 362 | */ |
363 | void | 363 | void |
364 | GCP_send (struct GCP_MessageQueueManager *mqm, | 364 | GCP_send(struct GCP_MessageQueueManager *mqm, |
365 | struct GNUNET_MQ_Envelope *env); | 365 | struct GNUNET_MQ_Envelope *env); |
366 | 366 | ||
367 | 367 | ||
368 | /** | 368 | /** |
@@ -375,8 +375,8 @@ GCP_send (struct GCP_MessageQueueManager *mqm, | |||
375 | * @param env envelope with the message to send | 375 | * @param env envelope with the message to send |
376 | */ | 376 | */ |
377 | void | 377 | void |
378 | GCP_send_ooo (struct CadetPeer *cp, | 378 | GCP_send_ooo(struct CadetPeer *cp, |
379 | struct GNUNET_MQ_Envelope *env); | 379 | struct GNUNET_MQ_Envelope *env); |
380 | 380 | ||
381 | 381 | ||
382 | /** | 382 | /** |
@@ -388,8 +388,8 @@ GCP_send_ooo (struct CadetPeer *cp, | |||
388 | * @param last_env final message to transmit, or NULL | 388 | * @param last_env final message to transmit, or NULL |
389 | */ | 389 | */ |
390 | void | 390 | void |
391 | GCP_request_mq_cancel (struct GCP_MessageQueueManager *mqm, | 391 | GCP_request_mq_cancel(struct GCP_MessageQueueManager *mqm, |
392 | struct GNUNET_MQ_Envelope *last_env); | 392 | struct GNUNET_MQ_Envelope *last_env); |
393 | 393 | ||
394 | 394 | ||
395 | /** | 395 | /** |
@@ -399,8 +399,8 @@ GCP_request_mq_cancel (struct GCP_MessageQueueManager *mqm, | |||
399 | * @param mq message queue to set (can be NULL) | 399 | * @param mq message queue to set (can be NULL) |
400 | */ | 400 | */ |
401 | void | 401 | void |
402 | GCP_set_mq (struct CadetPeer *cp, | 402 | GCP_set_mq(struct CadetPeer *cp, |
403 | struct GNUNET_MQ_Handle *mq); | 403 | struct GNUNET_MQ_Handle *mq); |
404 | 404 | ||
405 | 405 | ||
406 | #endif | 406 | #endif |