aboutsummaryrefslogtreecommitdiff
path: root/src/messenger/gnunet-service-messenger_tunnel.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-09-27 11:02:56 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2021-09-27 11:02:56 +0200
commit7ecc3a03a0670a1620c603502c9958b95e6dc1d0 (patch)
tree69d76fd05cbf0facae18b99b526c16426bf9b1c6 /src/messenger/gnunet-service-messenger_tunnel.c
parent1fef34e55a00816bdb237e87ff14d54e6575f763 (diff)
downloadgnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.tar.gz
gnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.zip
-indentation of parameters
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/gnunet-service-messenger_tunnel.c')
-rw-r--r--src/messenger/gnunet-service-messenger_tunnel.c49
1 files changed, 33 insertions, 16 deletions
diff --git a/src/messenger/gnunet-service-messenger_tunnel.c b/src/messenger/gnunet-service-messenger_tunnel.c
index b9d063813..fdd6429e6 100644
--- a/src/messenger/gnunet-service-messenger_tunnel.c
+++ b/src/messenger/gnunet-service-messenger_tunnel.c
@@ -33,7 +33,8 @@
33#include "messenger_api_util.h" 33#include "messenger_api_util.h"
34 34
35struct GNUNET_MESSENGER_SrvTunnel* 35struct GNUNET_MESSENGER_SrvTunnel*
36create_tunnel (struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_PeerIdentity *door) 36create_tunnel (struct GNUNET_MESSENGER_SrvRoom *room,
37 const struct GNUNET_PeerIdentity *door)
37{ 38{
38 GNUNET_assert((room) && (door)); 39 GNUNET_assert((room) && (door));
39 40
@@ -72,7 +73,8 @@ destroy_tunnel (struct GNUNET_MESSENGER_SrvTunnel *tunnel)
72} 73}
73 74
74void 75void
75bind_tunnel (struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_CADET_Channel *channel) 76bind_tunnel (struct GNUNET_MESSENGER_SrvTunnel *tunnel,
77 struct GNUNET_CADET_Channel *channel)
76{ 78{
77 GNUNET_assert(tunnel); 79 GNUNET_assert(tunnel);
78 80
@@ -83,10 +85,12 @@ bind_tunnel (struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_CADET_Chan
83} 85}
84 86
85extern void 87extern void
86callback_room_disconnect (struct GNUNET_MESSENGER_SrvRoom *room, void *cls); 88callback_room_disconnect (struct GNUNET_MESSENGER_SrvRoom *room,
89 void *cls);
87 90
88void 91void
89callback_tunnel_disconnect (void *cls, const struct GNUNET_CADET_Channel *channel) 92callback_tunnel_disconnect (void *cls,
93 const struct GNUNET_CADET_Channel *channel)
90{ 94{
91 struct GNUNET_MESSENGER_SrvTunnel *tunnel = cls; 95 struct GNUNET_MESSENGER_SrvTunnel *tunnel = cls;
92 96
@@ -99,11 +103,14 @@ callback_tunnel_disconnect (void *cls, const struct GNUNET_CADET_Channel *channe
99} 103}
100 104
101extern int 105extern int
102callback_verify_room_message (struct GNUNET_MESSENGER_SrvRoom *room, void *cls, 106callback_verify_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
103 struct GNUNET_MESSENGER_Message *message, struct GNUNET_HashCode *hash); 107 void *cls,
108 struct GNUNET_MESSENGER_Message *message,
109 struct GNUNET_HashCode *hash);
104 110
105int 111int
106check_tunnel_message (void *cls, const struct GNUNET_MessageHeader *header) 112check_tunnel_message (void *cls,
113 const struct GNUNET_MessageHeader *header)
107{ 114{
108 struct GNUNET_MESSENGER_SrvTunnel *tunnel = cls; 115 struct GNUNET_MESSENGER_SrvTunnel *tunnel = cls;
109 116
@@ -137,14 +144,18 @@ check_tunnel_message (void *cls, const struct GNUNET_MessageHeader *header)
137 144
138extern int 145extern int
139update_room_message (struct GNUNET_MESSENGER_SrvRoom *room, 146update_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
140 struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); 147 struct GNUNET_MESSENGER_Message *message,
148 const struct GNUNET_HashCode *hash);
141 149
142extern void 150extern void
143callback_room_handle_message (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvHandle *handle, 151callback_room_handle_message (struct GNUNET_MESSENGER_SrvRoom *room,
144 const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); 152 struct GNUNET_MESSENGER_SrvHandle *handle,
153 const struct GNUNET_MESSENGER_Message *message,
154 const struct GNUNET_HashCode *hash);
145 155
146static void 156static void
147update_tunnel_last_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel, const struct GNUNET_HashCode *hash) 157update_tunnel_last_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel,
158 const struct GNUNET_HashCode *hash)
148{ 159{
149 struct GNUNET_MESSENGER_OperationStore *operation_store = get_room_operation_store(tunnel->room); 160 struct GNUNET_MESSENGER_OperationStore *operation_store = get_room_operation_store(tunnel->room);
150 161
@@ -281,7 +292,8 @@ callback_tunnel_sent (void *cls)
281} 292}
282 293
283void 294void
284send_tunnel_envelope (struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_MQ_Envelope *env, 295send_tunnel_envelope (struct GNUNET_MESSENGER_SrvTunnel *tunnel,
296 struct GNUNET_MQ_Envelope *env,
285 const struct GNUNET_HashCode *hash) 297 const struct GNUNET_HashCode *hash)
286{ 298{
287 GNUNET_assert((tunnel) && (env) && (hash)); 299 GNUNET_assert((tunnel) && (env) && (hash));
@@ -299,7 +311,9 @@ send_tunnel_envelope (struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_M
299} 311}
300 312
301int 313int
302send_tunnel_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel, void *handle, struct GNUNET_MESSENGER_Message *message) 314send_tunnel_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel,
315 void *handle,
316 struct GNUNET_MESSENGER_Message *message)
303{ 317{
304 GNUNET_assert((tunnel) && (handle)); 318 GNUNET_assert((tunnel) && (handle));
305 319
@@ -325,7 +339,8 @@ send_tunnel_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel, void *handle, st
325} 339}
326 340
327void 341void
328forward_tunnel_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel, const struct GNUNET_MESSENGER_Message *message, 342forward_tunnel_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel,
343 const struct GNUNET_MESSENGER_Message *message,
329 const struct GNUNET_HashCode *hash) 344 const struct GNUNET_HashCode *hash)
330{ 345{
331 GNUNET_assert((tunnel) && (message) && (hash)); 346 GNUNET_assert((tunnel) && (message) && (hash));
@@ -353,7 +368,8 @@ get_tunnel_peer_message (const struct GNUNET_MESSENGER_SrvTunnel *tunnel)
353} 368}
354 369
355void 370void
356get_tunnel_peer_identity (const struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_PeerIdentity *peer) 371get_tunnel_peer_identity (const struct GNUNET_MESSENGER_SrvTunnel *tunnel,
372 struct GNUNET_PeerIdentity *peer)
357{ 373{
358 GNUNET_assert(tunnel); 374 GNUNET_assert(tunnel);
359 375
@@ -369,7 +385,8 @@ get_tunnel_messenger_version (const struct GNUNET_MESSENGER_SrvTunnel *tunnel)
369} 385}
370 386
371int 387int
372update_tunnel_messenger_version (struct GNUNET_MESSENGER_SrvTunnel *tunnel, uint32_t version) 388update_tunnel_messenger_version (struct GNUNET_MESSENGER_SrvTunnel *tunnel,
389 uint32_t version)
373{ 390{
374 GNUNET_assert(tunnel); 391 GNUNET_assert(tunnel);
375 392