aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mesh_service_new.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_mesh_service_new.h')
-rw-r--r--src/include/gnunet_mesh_service_new.h51
1 files changed, 27 insertions, 24 deletions
diff --git a/src/include/gnunet_mesh_service_new.h b/src/include/gnunet_mesh_service_new.h
index 7146faa75..89b1c881e 100644
--- a/src/include/gnunet_mesh_service_new.h
+++ b/src/include/gnunet_mesh_service_new.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/**
@@ -113,8 +115,8 @@ struct GNUNET_MESH_MessageHandler
113 * with the tunnel is stored 115 * with the tunnel is stored
114 */ 116 */
115typedef void (GNUNET_MESH_TunnelEndHandler) (void *cls, 117typedef void (GNUNET_MESH_TunnelEndHandler) (void *cls,
116 const struct GNUNET_MESH_Tunnel 118 const struct GNUNET_MESH_Tunnel *
117 * tunnel, void **tunnel_ctx); 119 tunnel, void **tunnel_ctx);
118 120
119 121
120/** 122/**
@@ -220,10 +222,10 @@ void GNUNET_MESH_tunnel_destroy (struct GNUNET_MESH_Tunnel *tun);
220 * @param timeout how long to try to establish a connection 222 * @param timeout how long to try to establish a connection
221 * @param peer peer to add 223 * @param peer peer to add
222 */ 224 */
223void 225void GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel,
224GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel, 226 struct GNUNET_TIME_Relative timeout,
225 struct GNUNET_TIME_Relative timeout, 227 const struct GNUNET_PeerIdentity
226 const struct GNUNET_PeerIdentity *peer); 228 *peer);
227 229
228 230
229/** 231/**
@@ -233,9 +235,9 @@ GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel,
233 * @param tunnel handle to existing tunnel 235 * @param tunnel handle to existing tunnel
234 * @param peer peer to remove 236 * @param peer peer to remove
235 */ 237 */
236void 238void GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
237GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel, 239 const struct GNUNET_PeerIdentity
238 const struct GNUNET_PeerIdentity *peer); 240 *peer);
239 241
240 242
241/** 243/**
@@ -247,10 +249,12 @@ GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
247 * @param app_type application type that must be supported by the peer 249 * @param app_type application type that must be supported by the peer
248 * (MESH should discover peer in proximity handling this type) 250 * (MESH should discover peer in proximity handling this type)
249 */ 251 */
250void 252void GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Tunnel
251GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Tunnel *tunnel, 253 *tunnel,
252 struct GNUNET_TIME_Relative timeout, 254 struct GNUNET_TIME_Relative
253 GNUNET_MESH_ApplicationType app_type); 255 timeout,
256 GNUNET_MESH_ApplicationType
257 app_type);
254 258
255 259
256/** 260/**
@@ -305,9 +309,8 @@ struct GNUNET_MESH_TransmitHandle *GNUNET_MESH_notify_transmit_ready (struct
305 * 309 *
306 * @param th handle that was returned by "notify_transmit_ready". 310 * @param th handle that was returned by "notify_transmit_ready".
307 */ 311 */
308void 312void GNUNET_MESH_notify_transmit_ready_cancel (struct GNUNET_MESH_TransmitHandle
309GNUNET_MESH_notify_transmit_ready_cancel (struct GNUNET_MESH_TransmitHandle 313 *th);
310 *th);
311 314
312 315
313#if 0 /* keep Emacsens' auto-indent happy */ 316#if 0 /* keep Emacsens' auto-indent happy */