aboutsummaryrefslogtreecommitdiff
path: root/src/messenger/gnunet-service-messenger_room.h
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_room.h
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_room.h')
-rw-r--r--src/messenger/gnunet-service-messenger_room.h55
1 files changed, 37 insertions, 18 deletions
diff --git a/src/messenger/gnunet-service-messenger_room.h b/src/messenger/gnunet-service-messenger_room.h
index 31ec877af..4b3811104 100644
--- a/src/messenger/gnunet-service-messenger_room.h
+++ b/src/messenger/gnunet-service-messenger_room.h
@@ -89,7 +89,8 @@ struct GNUNET_MESSENGER_SrvRoom
89 * @return New room 89 * @return New room
90 */ 90 */
91struct GNUNET_MESSENGER_SrvRoom* 91struct GNUNET_MESSENGER_SrvRoom*
92create_room (struct GNUNET_MESSENGER_SrvHandle *handle, const struct GNUNET_HashCode *key); 92create_room (struct GNUNET_MESSENGER_SrvHandle *handle,
93 const struct GNUNET_HashCode *key);
93 94
94/** 95/**
95 * Destroys a room and frees its memory fully. 96 * Destroys a room and frees its memory fully.
@@ -139,7 +140,8 @@ get_room_operation_store (struct GNUNET_MESSENGER_SrvRoom *room);
139 * @return #GNUNET_YES on success, #GNUNET_NO on failure. 140 * @return #GNUNET_YES on success, #GNUNET_NO on failure.
140 */ 141 */
141int 142int
142open_room (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvHandle *handle); 143open_room (struct GNUNET_MESSENGER_SrvRoom *room,
144 struct GNUNET_MESSENGER_SrvHandle *handle);
143 145
144/** 146/**
145 * Connects a tunnel to a hosting peer of a <i>room</i> through a so called <i>door</i> which is represented by 147 * Connects a tunnel to a hosting peer of a <i>room</i> through a so called <i>door</i> which is represented by
@@ -152,7 +154,8 @@ open_room (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvHan
152 * @return #GNUNET_YES on success, #GNUNET_NO on failure. 154 * @return #GNUNET_YES on success, #GNUNET_NO on failure.
153 */ 155 */
154int 156int
155enter_room_at (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvHandle *handle, 157enter_room_at (struct GNUNET_MESSENGER_SrvRoom *room,
158 struct GNUNET_MESSENGER_SrvHandle *handle,
156 const struct GNUNET_PeerIdentity *door); 159 const struct GNUNET_PeerIdentity *door);
157 160
158/** 161/**
@@ -173,8 +176,11 @@ enter_room_at (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_Sr
173 * @return New envelope or NULL 176 * @return New envelope or NULL
174 */ 177 */
175struct GNUNET_MQ_Envelope* 178struct GNUNET_MQ_Envelope*
176pack_room_message (const struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_MESSENGER_SrvHandle *handle, 179pack_room_message (const struct GNUNET_MESSENGER_SrvRoom *room,
177 struct GNUNET_MESSENGER_Message *message, struct GNUNET_HashCode *hash, int mode); 180 const struct GNUNET_MESSENGER_SrvHandle *handle,
181 struct GNUNET_MESSENGER_Message *message,
182 struct GNUNET_HashCode *hash,
183 int mode);
178 184
179/** 185/**
180 * Sends a <i>message</i> from a given <i>handle</i> into a <i>room</i>. The <i>hash</i> parameter will be 186 * Sends a <i>message</i> from a given <i>handle</i> into a <i>room</i>. The <i>hash</i> parameter will be
@@ -192,7 +198,8 @@ pack_room_message (const struct GNUNET_MESSENGER_SrvRoom *room, const struct GNU
192 * @return #GNUNET_YES on success, #GNUNET_NO or #GNUNET_SYSERR otherwise. 198 * @return #GNUNET_YES on success, #GNUNET_NO or #GNUNET_SYSERR otherwise.
193 */ 199 */
194int 200int
195send_room_message (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvHandle *handle, 201send_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
202 struct GNUNET_MESSENGER_SrvHandle *handle,
196 struct GNUNET_MESSENGER_Message *message); 203 struct GNUNET_MESSENGER_Message *message);
197 204
198/** 205/**
@@ -204,8 +211,10 @@ send_room_message (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGE
204 * @param[in] hash Hash of message 211 * @param[in] hash Hash of message
205 */ 212 */
206void 213void
207forward_room_message (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvTunnel *tunnel, 214forward_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
208 struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); 215 struct GNUNET_MESSENGER_SrvTunnel *tunnel,
216 struct GNUNET_MESSENGER_Message *message,
217 const struct GNUNET_HashCode *hash);
209 218
210/** 219/**
211 * Checks the current state of opening a given <i>room</i> from this peer and re-publishes it 220 * Checks the current state of opening a given <i>room</i> from this peer and re-publishes it
@@ -216,7 +225,8 @@ forward_room_message (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSE
216 * @param[in/out] tunnel Tunnel 225 * @param[in/out] tunnel Tunnel
217 */ 226 */
218void 227void
219check_room_peer_status (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvTunnel *tunnel); 228check_room_peer_status (struct GNUNET_MESSENGER_SrvRoom *room,
229 struct GNUNET_MESSENGER_SrvTunnel *tunnel);
220 230
221/** 231/**
222 * Reduces all current forks inside of the message history of a <i>room</i> to one remaining last message 232 * Reduces all current forks inside of the message history of a <i>room</i> to one remaining last message
@@ -226,7 +236,8 @@ check_room_peer_status (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MES
226 * @param[in/out] handle Handle 236 * @param[in/out] handle Handle
227 */ 237 */
228void 238void
229merge_room_last_messages (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_SrvHandle *handle); 239merge_room_last_messages (struct GNUNET_MESSENGER_SrvRoom *room,
240 struct GNUNET_MESSENGER_SrvHandle *handle);
230 241
231/** 242/**
232 * Deletes a message from the <i>room</i> with a given <i>hash</i> in a specific <i>delay</i> if 243 * Deletes a message from the <i>room</i> with a given <i>hash</i> in a specific <i>delay</i> if
@@ -239,8 +250,10 @@ merge_room_last_messages (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_M
239 * @return #GNUNET_YES on success, #GNUNET_NO if permission gets denied, #GNUNET_SYSERR on operation failure 250 * @return #GNUNET_YES on success, #GNUNET_NO if permission gets denied, #GNUNET_SYSERR on operation failure
240 */ 251 */
241int 252int
242delete_room_message (struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_MemberSession *session, 253delete_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
243 const struct GNUNET_HashCode *hash, const struct GNUNET_TIME_Relative delay); 254 struct GNUNET_MESSENGER_MemberSession *session,
255 const struct GNUNET_HashCode *hash,
256 const struct GNUNET_TIME_Relative delay);
244 257
245/** 258/**
246 * Returns the CADET handle from a rooms service. 259 * Returns the CADET handle from a rooms service.
@@ -269,7 +282,8 @@ get_room_key (const struct GNUNET_MESSENGER_SrvRoom *room);
269 * @return Tunnel or NULL 282 * @return Tunnel or NULL
270 */ 283 */
271const struct GNUNET_MESSENGER_SrvTunnel* 284const struct GNUNET_MESSENGER_SrvTunnel*
272get_room_tunnel (const struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_PeerIdentity *peer); 285get_room_tunnel (const struct GNUNET_MESSENGER_SrvRoom *room,
286 const struct GNUNET_PeerIdentity *peer);
273 287
274/** 288/**
275 * Method called whenever a <i>message</i> is found during a request in a <i>room</i>. 289 * Method called whenever a <i>message</i> is found during a request in a <i>room</i>.
@@ -280,7 +294,8 @@ get_room_tunnel (const struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNE
280 * @param[in] hash Hash of message 294 * @param[in] hash Hash of message
281 */ 295 */
282typedef void (GNUNET_MESSENGER_MessageRequestCallback) ( 296typedef void (GNUNET_MESSENGER_MessageRequestCallback) (
283 void *cls, struct GNUNET_MESSENGER_SrvRoom *room, 297 void *cls,
298 struct GNUNET_MESSENGER_SrvRoom *room,
284 const struct GNUNET_MESSENGER_Message *message, 299 const struct GNUNET_MESSENGER_Message *message,
285 const struct GNUNET_HashCode *hash 300 const struct GNUNET_HashCode *hash
286); 301);
@@ -301,9 +316,11 @@ typedef void (GNUNET_MESSENGER_MessageRequestCallback) (
301 * @return #GNUNET_YES if the request could be processed, otherwise #GNUNET_NO 316 * @return #GNUNET_YES if the request could be processed, otherwise #GNUNET_NO
302 */ 317 */
303int 318int
304request_room_message (struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_HashCode *hash, 319request_room_message (struct GNUNET_MESSENGER_SrvRoom *room,
320 const struct GNUNET_HashCode *hash,
305 const struct GNUNET_MESSENGER_MemberSession *session, 321 const struct GNUNET_MESSENGER_MemberSession *session,
306 GNUNET_MESSENGER_MessageRequestCallback callback, void* cls); 322 GNUNET_MESSENGER_MessageRequestCallback callback,
323 void* cls);
307 324
308/** 325/**
309 * Checks for potential collisions with member ids and solves them changing active handles ids if they 326 * Checks for potential collisions with member ids and solves them changing active handles ids if they
@@ -315,8 +332,10 @@ request_room_message (struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET
315 * @param[in] timestamp Timestamp 332 * @param[in] timestamp Timestamp
316 */ 333 */
317void 334void
318solve_room_member_collisions (struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_IDENTITY_PublicKey *public_key, 335solve_room_member_collisions (struct GNUNET_MESSENGER_SrvRoom *room,
319 const struct GNUNET_ShortHashCode *member_id, struct GNUNET_TIME_Absolute timestamp); 336 const struct GNUNET_IDENTITY_PublicKey *public_key,
337 const struct GNUNET_ShortHashCode *member_id,
338 struct GNUNET_TIME_Absolute timestamp);
320 339
321/** 340/**
322 * Rebuilds the decentralized structure for a <i>room</i> by ensuring all required connections are made 341 * Rebuilds the decentralized structure for a <i>room</i> by ensuring all required connections are made