aboutsummaryrefslogtreecommitdiff
path: root/src/messenger/gnunet-service-messenger_room.h
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2023-11-10 23:23:45 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2023-11-10 23:23:45 +0100
commite60834efb1e50717351e683142d0e57d6b537ee2 (patch)
tree332eb6d80ccb296d3e1e7380d3b8d91a2b036624 /src/messenger/gnunet-service-messenger_room.h
parenta37db0db76a3b5b5580974062b5ea13850221539 (diff)
downloadgnunet-e60834efb1e50717351e683142d0e57d6b537ee2.tar.gz
gnunet-e60834efb1e50717351e683142d0e57d6b537ee2.zip
MESSENGER: Uncrustify code
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/gnunet-service-messenger_room.h')
-rw-r--r--src/messenger/gnunet-service-messenger_room.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/messenger/gnunet-service-messenger_room.h b/src/messenger/gnunet-service-messenger_room.h
index f0bb33f80..a4a76645d 100644
--- a/src/messenger/gnunet-service-messenger_room.h
+++ b/src/messenger/gnunet-service-messenger_room.h
@@ -45,13 +45,13 @@
45#include "gnunet-service-messenger_operation_store.h" 45#include "gnunet-service-messenger_operation_store.h"
46 46
47#define GNUNET_MESSENGER_IDLE_DELAY GNUNET_TIME_relative_multiply \ 47#define GNUNET_MESSENGER_IDLE_DELAY GNUNET_TIME_relative_multiply \
48 (GNUNET_TIME_relative_get_second_ (), 5) 48 (GNUNET_TIME_relative_get_second_ (), 5)
49 49
50#define GNUNET_MESSENGER_REQUEST_DELAY GNUNET_TIME_relative_multiply \ 50#define GNUNET_MESSENGER_REQUEST_DELAY GNUNET_TIME_relative_multiply \
51 (GNUNET_TIME_relative_get_minute_ (), 5) 51 (GNUNET_TIME_relative_get_minute_ (), 5)
52 52
53#define GNUNET_MESSENGER_MERGE_DELAY GNUNET_TIME_relative_multiply \ 53#define GNUNET_MESSENGER_MERGE_DELAY GNUNET_TIME_relative_multiply \
54 (GNUNET_TIME_relative_get_second_ (), 30) 54 (GNUNET_TIME_relative_get_second_ (), 30)
55 55
56struct GNUNET_MESSENGER_SrvTunnel; 56struct GNUNET_MESSENGER_SrvTunnel;
57struct GNUNET_MESSENGER_MemberSession; 57struct GNUNET_MESSENGER_MemberSession;
@@ -89,7 +89,7 @@ struct GNUNET_MESSENGER_SrvRoom
89 */ 89 */
90struct GNUNET_MESSENGER_SrvRoom* 90struct GNUNET_MESSENGER_SrvRoom*
91create_srv_room (struct GNUNET_MESSENGER_SrvHandle *handle, 91create_srv_room (struct GNUNET_MESSENGER_SrvHandle *handle,
92 const struct GNUNET_HashCode *key); 92 const struct GNUNET_HashCode *key);
93 93
94/** 94/**
95 * Destroys a room and frees its memory fully. 95 * Destroys a room and frees its memory fully.
@@ -102,7 +102,7 @@ create_srv_room (struct GNUNET_MESSENGER_SrvHandle *handle,
102 */ 102 */
103void 103void
104destroy_srv_room (struct GNUNET_MESSENGER_SrvRoom *room, 104destroy_srv_room (struct GNUNET_MESSENGER_SrvRoom *room,
105 int deletion); 105 int deletion);
106 106
107/** 107/**
108 * Returns the used peer store of a given <i>room</i>. 108 * Returns the used peer store of a given <i>room</i>.
@@ -307,11 +307,11 @@ get_srv_room_tunnel (const struct GNUNET_MESSENGER_SrvRoom *room,
307 * @param[in] hash Hash of message 307 * @param[in] hash Hash of message
308 */ 308 */
309typedef void (GNUNET_MESSENGER_MessageRequestCallback) ( 309typedef void (GNUNET_MESSENGER_MessageRequestCallback) (
310 void *cls, 310 void *cls,
311 struct GNUNET_MESSENGER_SrvRoom *room, 311 struct GNUNET_MESSENGER_SrvRoom *room,
312 const struct GNUNET_MESSENGER_Message *message, 312 const struct GNUNET_MESSENGER_Message *message,
313 const struct GNUNET_HashCode *hash 313 const struct GNUNET_HashCode *hash
314); 314 );
315 315
316/** 316/**
317 * Requests a message from a <i>room</i> identified by a given <i>hash</i>. If the message is found, 317 * Requests a message from a <i>room</i> identified by a given <i>hash</i>. If the message is found,
@@ -333,7 +333,7 @@ request_srv_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
333 const struct GNUNET_HashCode *hash, 333 const struct GNUNET_HashCode *hash,
334 const struct GNUNET_MESSENGER_MemberSession *session, 334 const struct GNUNET_MESSENGER_MemberSession *session,
335 GNUNET_MESSENGER_MessageRequestCallback callback, 335 GNUNET_MESSENGER_MessageRequestCallback callback,
336 void* cls); 336 void *cls);
337 337
338/** 338/**
339 * Checks for potential collisions with member ids and solves them changing active handles ids if they 339 * Checks for potential collisions with member ids and solves them changing active handles ids if they
@@ -346,7 +346,8 @@ request_srv_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
346 */ 346 */
347void 347void
348solve_srv_room_member_collisions (struct GNUNET_MESSENGER_SrvRoom *room, 348solve_srv_room_member_collisions (struct GNUNET_MESSENGER_SrvRoom *room,
349 const struct GNUNET_IDENTITY_PublicKey *public_key, 349 const struct
350 GNUNET_IDENTITY_PublicKey *public_key,
350 const struct GNUNET_ShortHashCode *member_id, 351 const struct GNUNET_ShortHashCode *member_id,
351 struct GNUNET_TIME_Absolute timestamp); 352 struct GNUNET_TIME_Absolute timestamp);
352 353