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/messenger_api_room.h | |
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/messenger_api_room.h')
-rw-r--r-- | src/messenger/messenger_api_room.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/messenger/messenger_api_room.h b/src/messenger/messenger_api_room.h index 634052272..320312f0c 100644 --- a/src/messenger/messenger_api_room.h +++ b/src/messenger/messenger_api_room.h | |||
@@ -64,7 +64,8 @@ struct GNUNET_MESSENGER_Room | |||
64 | * @return New room | 64 | * @return New room |
65 | */ | 65 | */ |
66 | struct GNUNET_MESSENGER_Room* | 66 | struct GNUNET_MESSENGER_Room* |
67 | create_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key); | 67 | create_room (struct GNUNET_MESSENGER_Handle *handle, |
68 | const struct GNUNET_HashCode *key); | ||
68 | 69 | ||
69 | /** | 70 | /** |
70 | * Destroys a room and frees its memory fully from the client API. | 71 | * Destroys a room and frees its memory fully from the client API. |
@@ -83,7 +84,8 @@ destroy_room (struct GNUNET_MESSENGER_Room *room); | |||
83 | * @return Message or NULL | 84 | * @return Message or NULL |
84 | */ | 85 | */ |
85 | const struct GNUNET_MESSENGER_Message* | 86 | const struct GNUNET_MESSENGER_Message* |
86 | get_room_message (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash); | 87 | get_room_message (const struct GNUNET_MESSENGER_Room *room, |
88 | const struct GNUNET_HashCode *hash); | ||
87 | 89 | ||
88 | /** | 90 | /** |
89 | * Returns a messages sender locally stored from a map for a given <i>hash</i> in a <i>room</i>. If no | 91 | * Returns a messages sender locally stored from a map for a given <i>hash</i> in a <i>room</i>. If no |
@@ -94,7 +96,8 @@ get_room_message (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_ | |||
94 | * @return Contact of sender or NULL | 96 | * @return Contact of sender or NULL |
95 | */ | 97 | */ |
96 | struct GNUNET_MESSENGER_Contact* | 98 | struct GNUNET_MESSENGER_Contact* |
97 | get_room_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash); | 99 | get_room_sender (const struct GNUNET_MESSENGER_Room *room, |
100 | const struct GNUNET_HashCode *hash); | ||
98 | 101 | ||
99 | /** | 102 | /** |
100 | * Handles a <i>message</i> with a given <i>hash</i> in a <i>room</i> for the client API to update | 103 | * Handles a <i>message</i> with a given <i>hash</i> in a <i>room</i> for the client API to update |
@@ -110,8 +113,10 @@ get_room_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_H | |||
110 | * @return Contact of sender | 113 | * @return Contact of sender |
111 | */ | 114 | */ |
112 | struct GNUNET_MESSENGER_Contact* | 115 | struct GNUNET_MESSENGER_Contact* |
113 | handle_room_message (struct GNUNET_MESSENGER_Room *room, struct GNUNET_MESSENGER_Contact *sender, | 116 | handle_room_message (struct GNUNET_MESSENGER_Room *room, |
114 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | 117 | struct GNUNET_MESSENGER_Contact *sender, |
118 | const struct GNUNET_MESSENGER_Message *message, | ||
119 | const struct GNUNET_HashCode *hash); | ||
115 | 120 | ||
116 | /** | 121 | /** |
117 | * Iterates through all members of a given <i>room</i> to forward each of them to a selected | 122 | * Iterates through all members of a given <i>room</i> to forward each of them to a selected |
@@ -123,7 +128,8 @@ handle_room_message (struct GNUNET_MESSENGER_Room *room, struct GNUNET_MESSENGER | |||
123 | * @return Amount of members iterated | 128 | * @return Amount of members iterated |
124 | */ | 129 | */ |
125 | int | 130 | int |
126 | iterate_room_members (struct GNUNET_MESSENGER_Room *room, GNUNET_MESSENGER_MemberCallback callback, | 131 | iterate_room_members (struct GNUNET_MESSENGER_Room *room, |
132 | GNUNET_MESSENGER_MemberCallback callback, | ||
127 | void* cls); | 133 | void* cls); |
128 | 134 | ||
129 | /** | 135 | /** |
@@ -135,6 +141,7 @@ iterate_room_members (struct GNUNET_MESSENGER_Room *room, GNUNET_MESSENGER_Membe | |||
135 | * @return #GNUNET_YES if found, otherwise #GNUNET_NO | 141 | * @return #GNUNET_YES if found, otherwise #GNUNET_NO |
136 | */ | 142 | */ |
137 | int | 143 | int |
138 | find_room_member (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_MESSENGER_Contact *contact); | 144 | find_room_member (const struct GNUNET_MESSENGER_Room *room, |
145 | const struct GNUNET_MESSENGER_Contact *contact); | ||
139 | 146 | ||
140 | #endif //GNUNET_MESSENGER_API_ROOM_H | 147 | #endif //GNUNET_MESSENGER_API_ROOM_H |