aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mesh_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_mesh_service.h')
-rw-r--r--src/include/gnunet_mesh_service.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index 7e332c749..507b766d1 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -67,14 +67,16 @@ struct GNUNET_MESH_Tunnel;
67 * @return GNUNET_OK to keep the connection open, 67 * @return GNUNET_OK to keep the connection open,
68 * GNUNET_SYSERR to close it (signal serious error) 68 * GNUNET_SYSERR to close it (signal serious error)
69 */ 69 */
70typedef int 70typedef int (*GNUNET_MESH_MessageCallback) (void *cls,
71 (*GNUNET_MESH_MessageCallback) (void *cls, 71 struct GNUNET_MESH_Tunnel * tunnel,
72 struct GNUNET_MESH_Tunnel * tunnel, 72 void **tunnel_ctx,
73 void **tunnel_ctx, 73 const struct GNUNET_PeerIdentity *
74 const struct GNUNET_PeerIdentity * sender, 74 sender,
75 const struct GNUNET_MessageHeader * message, 75 const struct GNUNET_MessageHeader *
76 const struct 76 message,
77 GNUNET_TRANSPORT_ATS_Information * atsi); 77 const struct
78 GNUNET_TRANSPORT_ATS_Information *
79 atsi);
78 80
79 81
80/** 82/**
@@ -281,10 +283,10 @@ struct GNUNET_MESH_Tunnel *GNUNET_MESH_peer_request_connect_all (struct
281 * @param timeout how long to try to establish a connection 283 * @param timeout how long to try to establish a connection
282 * @param peer peer to add 284 * @param peer peer to add
283 */ 285 */
284void 286void GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel,
285GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel, 287 struct GNUNET_TIME_Relative timeout,
286 struct GNUNET_TIME_Relative timeout, 288 const struct GNUNET_PeerIdentity
287 const struct GNUNET_PeerIdentity *peer); 289 *peer);
288 290
289 291
290/** 292/**
@@ -294,9 +296,9 @@ GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel,
294 * @param tunnel handle to existing tunnel 296 * @param tunnel handle to existing tunnel
295 * @param peer peer to remove 297 * @param peer peer to remove
296 */ 298 */
297void 299void GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
298GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel, 300 const struct GNUNET_PeerIdentity
299 const struct GNUNET_PeerIdentity *peer); 301 *peer);
300 302
301 303
302/** 304/**
@@ -394,9 +396,8 @@ struct GNUNET_MESH_TransmitHandle *GNUNET_MESH_notify_transmit_ready (struct
394 * 396 *
395 * @param th handle that was returned by "notify_transmit_ready". 397 * @param th handle that was returned by "notify_transmit_ready".
396 */ 398 */
397void 399void GNUNET_MESH_notify_transmit_ready_cancel (struct GNUNET_MESH_TransmitHandle
398GNUNET_MESH_notify_transmit_ready_cancel (struct GNUNET_MESH_TransmitHandle 400 *th);
399 *th);
400 401
401void GNUNET_MESH_tunnel_set_head (struct GNUNET_MESH_Tunnel *tunnel, 402void GNUNET_MESH_tunnel_set_head (struct GNUNET_MESH_Tunnel *tunnel,
402 void *head); 403 void *head);