aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-14 11:59:46 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-14 11:59:46 +0000
commit1fe79fd553e21a20206301c18568d30158c9dd46 (patch)
tree3db4e42adb872d1e8aa792643c341a14b2959736 /src/include
parentf709218364f7d40e5a13938886514e866602715d (diff)
downloadgnunet-1fe79fd553e21a20206301c18568d30158c9dd46.tar.gz
gnunet-1fe79fd553e21a20206301c18568d30158c9dd46.zip
indentation
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_mesh_service_new.h40
-rw-r--r--src/include/gnunet_transport_service.h12
2 files changed, 30 insertions, 22 deletions
diff --git a/src/include/gnunet_mesh_service_new.h b/src/include/gnunet_mesh_service_new.h
index f32bf28c5..6db406de3 100644
--- a/src/include/gnunet_mesh_service_new.h
+++ b/src/include/gnunet_mesh_service_new.h
@@ -116,11 +116,16 @@ struct GNUNET_MESH_MessageHandler
116 * @return initial tunnel context for the tunnel 116 * @return initial tunnel context for the tunnel
117 * (can be NULL -- that's not an error) 117 * (can be NULL -- that's not an error)
118 */ 118 */
119typedef void* (GNUNET_MESH_InboundTunnelNotificationHandler) ( 119typedef void *(GNUNET_MESH_InboundTunnelNotificationHandler) (void *cls,
120 void *cls, 120 struct
121 struct GNUNET_MESH_Tunnel * tunnel, 121 GNUNET_MESH_Tunnel
122 const struct GNUNET_PeerIdentity * initiator, 122 * tunnel,
123 const struct GNUNET_TRANSPORT_ATS_Information * atsi); 123 const struct
124 GNUNET_PeerIdentity
125 * initiator,
126 const struct
127 GNUNET_TRANSPORT_ATS_Information
128 * atsi);
124 129
125 130
126/** 131/**
@@ -164,8 +169,7 @@ typedef uint32_t GNUNET_MESH_ApplicationType;
164 */ 169 */
165struct GNUNET_MESH_Handle * 170struct GNUNET_MESH_Handle *
166GNUNET_MESH_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, 171GNUNET_MESH_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
167 unsigned int queue_size, 172 unsigned int queue_size, void *cls,
168 void *cls,
169 GNUNET_MESH_InboundTunnelNotificationHandler new_tunnel, 173 GNUNET_MESH_InboundTunnelNotificationHandler new_tunnel,
170 GNUNET_MESH_TunnelEndHandler cleaner, 174 GNUNET_MESH_TunnelEndHandler cleaner,
171 const struct GNUNET_MESH_MessageHandler *handlers, 175 const struct GNUNET_MESH_MessageHandler *handlers,
@@ -187,9 +191,9 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle);
187 * @param cls closure 191 * @param cls closure
188 * @param peer peer identity the tunnel stopped working with 192 * @param peer peer identity the tunnel stopped working with
189 */ 193 */
190typedef void (*GNUNET_MESH_PeerDisconnectHandler) ( 194typedef void (*GNUNET_MESH_PeerDisconnectHandler) (void *cls,
191 void *cls, 195 const struct
192 const struct GNUNET_PeerIdentity * peer); 196 GNUNET_PeerIdentity * peer);
193 197
194 198
195/** 199/**
@@ -200,10 +204,12 @@ typedef void (*GNUNET_MESH_PeerDisconnectHandler) (
200 * @param peer peer identity the tunnel was created to, NULL on timeout 204 * @param peer peer identity the tunnel was created to, NULL on timeout
201 * @param atsi performance data for the connection 205 * @param atsi performance data for the connection
202 */ 206 */
203typedef void (*GNUNET_MESH_PeerConnectHandler) ( 207typedef void (*GNUNET_MESH_PeerConnectHandler) (void *cls,
204 void *cls, 208 const struct GNUNET_PeerIdentity
205 const struct GNUNET_PeerIdentity * peer, 209 * peer,
206 const struct GNUNET_TRANSPORT_ATS_Information * atsi); 210 const struct
211 GNUNET_TRANSPORT_ATS_Information
212 * atsi);
207 213
208 214
209 215
@@ -218,8 +224,7 @@ typedef void (*GNUNET_MESH_PeerConnectHandler) (
218 * @param handler_cls closure for connect/disconnect handlers 224 * @param handler_cls closure for connect/disconnect handlers
219 */ 225 */
220struct GNUNET_MESH_Tunnel * 226struct GNUNET_MESH_Tunnel *
221GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h, 227GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h, void *tunnel_ctx,
222 void *tunnel_ctx,
223 GNUNET_MESH_PeerConnectHandler connect_handler, 228 GNUNET_MESH_PeerConnectHandler connect_handler,
224 GNUNET_MESH_PeerDisconnectHandler disconnect_handler, 229 GNUNET_MESH_PeerDisconnectHandler disconnect_handler,
225 void *handler_cls); 230 void *handler_cls);
@@ -297,8 +302,7 @@ struct GNUNET_MESH_TransmitHandle;
297 * memory); if NULL is returned, "notify" will NOT be called. 302 * memory); if NULL is returned, "notify" will NOT be called.
298 */ 303 */
299struct GNUNET_MESH_TransmitHandle * 304struct GNUNET_MESH_TransmitHandle *
300GNUNET_MESH_notify_transmit_ready (struct GNUNET_MESH_Tunnel *tunnel, 305GNUNET_MESH_notify_transmit_ready (struct GNUNET_MESH_Tunnel *tunnel, int cork,
301 int cork,
302 uint32_t priority, 306 uint32_t priority,
303 struct GNUNET_TIME_Relative maxdelay, 307 struct GNUNET_TIME_Relative maxdelay,
304 const struct GNUNET_PeerIdentity *target, 308 const struct GNUNET_PeerIdentity *target,
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 4f868e526..8b9472cdb 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -638,7 +638,7 @@ GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
638 638
639/** 639/**
640 * Handle to cancel a pending address lookup. 640 * Handle to cancel a pending address lookup.
641 */ 641 */
642struct GNUNET_TRANSPORT_AddressLookupContext; 642struct GNUNET_TRANSPORT_AddressLookupContext;
643 643
644 644
@@ -671,12 +671,14 @@ GNUNET_TRANSPORT_address_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg,
671 * @param alc handle for the request to cancel 671 * @param alc handle for the request to cancel
672 */ 672 */
673void 673void
674GNUNET_TRANSPORT_address_lookup_cancel (struct GNUNET_TRANSPORT_AddressLookupContext *alc); 674GNUNET_TRANSPORT_address_lookup_cancel (struct
675 GNUNET_TRANSPORT_AddressLookupContext
676 *alc);
675 677
676 678
677/** 679/**
678 * Handle to cancel a pending address lookup. 680 * Handle to cancel a pending address lookup.
679 */ 681 */
680struct GNUNET_TRANSPORT_AddressLookupContext; 682struct GNUNET_TRANSPORT_AddressLookupContext;
681 683
682 684
@@ -706,7 +708,9 @@ GNUNET_TRANSPORT_peer_address_lookup (const struct GNUNET_CONFIGURATION_Handle
706 * @param alc handle for the request to cancel 708 * @param alc handle for the request to cancel
707 */ 709 */
708void 710void
709GNUNET_TRANSPORT_peer_address_lookup_cancel (struct GNUNET_TRANSPORT_PeerAddressLookupContext *alc); 711GNUNET_TRANSPORT_peer_address_lookup_cancel (struct
712 GNUNET_TRANSPORT_PeerAddressLookupContext
713 *alc);
710 714
711 715
712/** 716/**