diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
commit | 7ecc3a03a0670a1620c603502c9958b95e6dc1d0 (patch) | |
tree | 69d76fd05cbf0facae18b99b526c16426bf9b1c6 /src/messenger/gnunet-service-messenger_tunnel.c | |
parent | 1fef34e55a00816bdb237e87ff14d54e6575f763 (diff) | |
download | gnunet-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.c | 49 |
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 | ||
35 | struct GNUNET_MESSENGER_SrvTunnel* | 35 | struct GNUNET_MESSENGER_SrvTunnel* |
36 | create_tunnel (struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_PeerIdentity *door) | 36 | create_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 | ||
74 | void | 75 | void |
75 | bind_tunnel (struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_CADET_Channel *channel) | 76 | bind_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 | ||
85 | extern void | 87 | extern void |
86 | callback_room_disconnect (struct GNUNET_MESSENGER_SrvRoom *room, void *cls); | 88 | callback_room_disconnect (struct GNUNET_MESSENGER_SrvRoom *room, |
89 | void *cls); | ||
87 | 90 | ||
88 | void | 91 | void |
89 | callback_tunnel_disconnect (void *cls, const struct GNUNET_CADET_Channel *channel) | 92 | callback_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 | ||
101 | extern int | 105 | extern int |
102 | callback_verify_room_message (struct GNUNET_MESSENGER_SrvRoom *room, void *cls, | 106 | callback_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 | ||
105 | int | 111 | int |
106 | check_tunnel_message (void *cls, const struct GNUNET_MessageHeader *header) | 112 | check_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 | ||
138 | extern int | 145 | extern int |
139 | update_room_message (struct GNUNET_MESSENGER_SrvRoom *room, | 146 | update_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 | ||
142 | extern void | 150 | extern void |
143 | callback_room_handle_message (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvHandle *handle, | 151 | callback_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 | ||
146 | static void | 156 | static void |
147 | update_tunnel_last_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel, const struct GNUNET_HashCode *hash) | 157 | update_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 | ||
283 | void | 294 | void |
284 | send_tunnel_envelope (struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_MQ_Envelope *env, | 295 | send_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 | ||
301 | int | 313 | int |
302 | send_tunnel_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel, void *handle, struct GNUNET_MESSENGER_Message *message) | 314 | send_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 | ||
327 | void | 341 | void |
328 | forward_tunnel_message (struct GNUNET_MESSENGER_SrvTunnel *tunnel, const struct GNUNET_MESSENGER_Message *message, | 342 | forward_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 | ||
355 | void | 370 | void |
356 | get_tunnel_peer_identity (const struct GNUNET_MESSENGER_SrvTunnel *tunnel, struct GNUNET_PeerIdentity *peer) | 371 | get_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 | ||
371 | int | 387 | int |
372 | update_tunnel_messenger_version (struct GNUNET_MESSENGER_SrvTunnel *tunnel, uint32_t version) | 388 | update_tunnel_messenger_version (struct GNUNET_MESSENGER_SrvTunnel *tunnel, |
389 | uint32_t version) | ||
373 | { | 390 | { |
374 | GNUNET_assert(tunnel); | 391 | GNUNET_assert(tunnel); |
375 | 392 | ||