diff options
Diffstat (limited to 'src/include/gnunet_mesh_service_new.h')
-rw-r--r-- | src/include/gnunet_mesh_service_new.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/include/gnunet_mesh_service_new.h b/src/include/gnunet_mesh_service_new.h index 4729ae60d..7ca53b070 100644 --- a/src/include/gnunet_mesh_service_new.h +++ b/src/include/gnunet_mesh_service_new.h | |||
@@ -135,14 +135,16 @@ typedef uint32_t GNUNET_MESH_ApplicationType; | |||
135 | * @param atsi performance information for the tunnel | 135 | * @param atsi performance information for the tunnel |
136 | * @return initial tunnel context for the tunnel (can be NULL -- that's not an error) | 136 | * @return initial tunnel context for the tunnel (can be NULL -- that's not an error) |
137 | */ | 137 | */ |
138 | typedef void* (*GNUNET_MESH_InboundTunnelNotificationHandler) (void *cls, | 138 | typedef void *(*GNUNET_MESH_InboundTunnelNotificationHandler) (void *cls, |
139 | struct GNUNET_MESH_Tunnel * tunnel, | 139 | struct |
140 | const struct | 140 | GNUNET_MESH_Tunnel |
141 | GNUNET_PeerIdentity * | 141 | * tunnel, |
142 | initiator, | 142 | const struct |
143 | const struct | 143 | GNUNET_PeerIdentity |
144 | GNUNET_TRANSPORT_ATS_Information * | 144 | * initiator, |
145 | atsi); | 145 | const struct |
146 | GNUNET_TRANSPORT_ATS_Information | ||
147 | * atsi); | ||
146 | 148 | ||
147 | 149 | ||
148 | /** | 150 | /** |
@@ -219,8 +221,7 @@ typedef void (*GNUNET_MESH_TunnelConnectHandler) (void *cls, | |||
219 | * @param handler_cls closure for connect/disconnect handlers | 221 | * @param handler_cls closure for connect/disconnect handlers |
220 | */ | 222 | */ |
221 | struct GNUNET_MESH_Tunnel * | 223 | struct GNUNET_MESH_Tunnel * |
222 | GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h, | 224 | GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h, void *tunnel_ctx, |
223 | void *tunnel_ctx, | ||
224 | GNUNET_MESH_TunnelConnectHandler connect_handler, | 225 | GNUNET_MESH_TunnelConnectHandler connect_handler, |
225 | GNUNET_MESH_TunnelDisconnectHandler | 226 | GNUNET_MESH_TunnelDisconnectHandler |
226 | disconnect_handler, void *handler_cls); | 227 | disconnect_handler, void *handler_cls); |