aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_peer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r--src/cadet/gnunet-service-cadet_peer.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h
index 09c6f64c9..bec0606a0 100644
--- a/src/cadet/gnunet-service-cadet_peer.h
+++ b/src/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 */
41const char * 41const char *
42GCP_2s(const struct CadetPeer *peer); 42GCP_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 */
56struct CadetPeer * 56struct CadetPeer *
57GCP_get(const struct GNUNET_PeerIdentity *peer_id, 57GCP_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 */
70double 70double
71GCP_get_desirability_of_path(struct CadetPeer *cp, 71GCP_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 */
81const struct GNUNET_PeerIdentity * 81const struct GNUNET_PeerIdentity *
82GCP_get_id(struct CadetPeer *cp); 82GCP_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 */
91void 91void
92GCP_iterate_all(GNUNET_CONTAINER_PeerMapIterator iter, 92GCP_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 */
102unsigned int 102unsigned int
103GCP_count_paths(const struct CadetPeer *cp); 103GCP_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 */
112void 112void
113GCP_drop_owned_paths(struct CadetPeer *cp); 113GCP_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 */
139unsigned int 139unsigned int
140GCP_iterate_paths(struct CadetPeer *cp, 140GCP_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 */
152unsigned int 152unsigned int
153GCP_iterate_indirect_paths(struct CadetPeer *cp, 153GCP_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 */
168unsigned int 168unsigned int
169GCP_iterate_paths_at(struct CadetPeer *cp, 169GCP_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 */
182void 182void
183GCP_path_entry_remove(struct CadetPeer *cp, 183GCP_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 */
195void 195void
196GCP_path_entry_add(struct CadetPeer *cp, 196GCP_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 */
208struct CadetTunnel * 208struct CadetTunnel *
209GCP_get_tunnel(struct CadetPeer *cp, 209GCP_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 */
220void 220void
221GCP_drop_tunnel(struct CadetPeer *cp, 221GCP_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 */
236struct GNUNET_CONTAINER_HeapNode * 236struct GNUNET_CONTAINER_HeapNode *
237GCP_attach_path(struct CadetPeer *cp, 237GCP_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 */
252void 252void
253GCP_detach_path(struct CadetPeer *cp, 253GCP_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 */
264void 264void
265GCP_add_connection(struct CadetPeer *cp, 265GCP_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 */
275void 275void
276GCP_remove_connection(struct CadetPeer *cp, 276GCP_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 */
287void 287void
288GCP_set_hello(struct CadetPeer *cp, 288GCP_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 */
297void 297void
298GCP_destroy_all_peers(void); 298GCP_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 */
336struct GCP_MessageQueueManager * 336struct GCP_MessageQueueManager *
337GCP_request_mq(struct CadetPeer *cp, 337GCP_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 */
348int 348int
349GCP_has_core_connection(struct CadetPeer *cp); 349GCP_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 */
363void 363void
364GCP_send(struct GCP_MessageQueueManager *mqm, 364GCP_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 */
377void 377void
378GCP_send_ooo(struct CadetPeer *cp, 378GCP_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 */
390void 390void
391GCP_request_mq_cancel(struct GCP_MessageQueueManager *mqm, 391GCP_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 */
401void 401void
402GCP_set_mq(struct CadetPeer *cp, 402GCP_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