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_service.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/gnunet-service-messenger_service.h')
-rw-r--r-- | src/messenger/gnunet-service-messenger_service.h | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/src/messenger/gnunet-service-messenger_service.h b/src/messenger/gnunet-service-messenger_service.h index aa43fa457..d364a93c0 100644 --- a/src/messenger/gnunet-service-messenger_service.h +++ b/src/messenger/gnunet-service-messenger_service.h | |||
@@ -68,7 +68,8 @@ struct GNUNET_MESSENGER_Service | |||
68 | * @return New service | 68 | * @return New service |
69 | */ | 69 | */ |
70 | struct GNUNET_MESSENGER_Service* | 70 | struct GNUNET_MESSENGER_Service* |
71 | create_service (const struct GNUNET_CONFIGURATION_Handle *config, struct GNUNET_SERVICE_Handle *service_handle); | 71 | create_service (const struct GNUNET_CONFIGURATION_Handle *config, |
72 | struct GNUNET_SERVICE_Handle *service_handle); | ||
72 | 73 | ||
73 | /** | 74 | /** |
74 | * Destroys a <i>service</i> and frees its memory fully. | 75 | * Destroys a <i>service</i> and frees its memory fully. |
@@ -104,7 +105,8 @@ get_service_contact_store (struct GNUNET_MESSENGER_Service *service); | |||
104 | * @return New handle | 105 | * @return New handle |
105 | */ | 106 | */ |
106 | struct GNUNET_MESSENGER_SrvHandle* | 107 | struct GNUNET_MESSENGER_SrvHandle* |
107 | add_service_handle (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MQ_Handle *mq); | 108 | add_service_handle (struct GNUNET_MESSENGER_Service *service, |
109 | struct GNUNET_MQ_Handle *mq); | ||
108 | 110 | ||
109 | /** | 111 | /** |
110 | * Removes a <i>handle</i> from a <i>service</i> and destroys it. | 112 | * Removes a <i>handle</i> from a <i>service</i> and destroys it. |
@@ -113,7 +115,8 @@ add_service_handle (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MQ_H | |||
113 | * @param[in/out] handle Handle | 115 | * @param[in/out] handle Handle |
114 | */ | 116 | */ |
115 | void | 117 | void |
116 | remove_service_handle (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESSENGER_SrvHandle *handle); | 118 | remove_service_handle (struct GNUNET_MESSENGER_Service *service, |
119 | struct GNUNET_MESSENGER_SrvHandle *handle); | ||
117 | 120 | ||
118 | /** | 121 | /** |
119 | * Tries to write the peer identity of the peer running a <i>service</i> on to the <i>peer</i> | 122 | * Tries to write the peer identity of the peer running a <i>service</i> on to the <i>peer</i> |
@@ -124,7 +127,8 @@ remove_service_handle (struct GNUNET_MESSENGER_Service *service, struct GNUNET_M | |||
124 | * @return #GNUNET_OK on success, otherwise #GNUNET_SYSERR | 127 | * @return #GNUNET_OK on success, otherwise #GNUNET_SYSERR |
125 | */ | 128 | */ |
126 | int | 129 | int |
127 | get_service_peer_identity (const struct GNUNET_MESSENGER_Service *service, struct GNUNET_PeerIdentity *peer); | 130 | get_service_peer_identity (const struct GNUNET_MESSENGER_Service *service, |
131 | struct GNUNET_PeerIdentity *peer); | ||
128 | 132 | ||
129 | /** | 133 | /** |
130 | * Returns the room identified by a given <i>key</i> for a <i>service</i>. If the service doesn't know any room | 134 | * Returns the room identified by a given <i>key</i> for a <i>service</i>. If the service doesn't know any room |
@@ -135,7 +139,8 @@ get_service_peer_identity (const struct GNUNET_MESSENGER_Service *service, struc | |||
135 | * @return Room or NULL | 139 | * @return Room or NULL |
136 | */ | 140 | */ |
137 | struct GNUNET_MESSENGER_SrvRoom* | 141 | struct GNUNET_MESSENGER_SrvRoom* |
138 | get_service_room (const struct GNUNET_MESSENGER_Service *service, const struct GNUNET_HashCode *key); | 142 | get_service_room (const struct GNUNET_MESSENGER_Service *service, |
143 | const struct GNUNET_HashCode *key); | ||
139 | 144 | ||
140 | /** | 145 | /** |
141 | * Tries to open a room using a given <i>key</i> for a <i>service</i> by a specific <i>handle</i>. The room will be | 146 | * Tries to open a room using a given <i>key</i> for a <i>service</i> by a specific <i>handle</i>. The room will be |
@@ -147,7 +152,8 @@ get_service_room (const struct GNUNET_MESSENGER_Service *service, const struct G | |||
147 | * @return #GNUNET_YES on success, otherwise #GNUNET_NO | 152 | * @return #GNUNET_YES on success, otherwise #GNUNET_NO |
148 | */ | 153 | */ |
149 | int | 154 | int |
150 | open_service_room (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESSENGER_SrvHandle *handle, | 155 | open_service_room (struct GNUNET_MESSENGER_Service *service, |
156 | struct GNUNET_MESSENGER_SrvHandle *handle, | ||
151 | const struct GNUNET_HashCode *key); | 157 | const struct GNUNET_HashCode *key); |
152 | 158 | ||
153 | /** | 159 | /** |
@@ -164,8 +170,10 @@ open_service_room (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESSE | |||
164 | * @return #GNUNET_YES on success, otherwise #GNUNET_NO | 170 | * @return #GNUNET_YES on success, otherwise #GNUNET_NO |
165 | */ | 171 | */ |
166 | int | 172 | int |
167 | entry_service_room (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESSENGER_SrvHandle *handle, | 173 | entry_service_room (struct GNUNET_MESSENGER_Service *service, |
168 | const struct GNUNET_PeerIdentity *door, const struct GNUNET_HashCode *key); | 174 | struct GNUNET_MESSENGER_SrvHandle *handle, |
175 | const struct GNUNET_PeerIdentity *door, | ||
176 | const struct GNUNET_HashCode *key); | ||
169 | 177 | ||
170 | /** | 178 | /** |
171 | * Tries to close a room using a given <i>key</i> for a <i>service</i> by a specific <i>handle</i>. The room will | 179 | * Tries to close a room using a given <i>key</i> for a <i>service</i> by a specific <i>handle</i>. The room will |
@@ -180,7 +188,8 @@ entry_service_room (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESS | |||
180 | * @return #GNUNET_YES on success, otherwise #GNUNET_NO | 188 | * @return #GNUNET_YES on success, otherwise #GNUNET_NO |
181 | */ | 189 | */ |
182 | int | 190 | int |
183 | close_service_room (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESSENGER_SrvHandle *handle, | 191 | close_service_room (struct GNUNET_MESSENGER_Service *service, |
192 | struct GNUNET_MESSENGER_SrvHandle *handle, | ||
184 | const struct GNUNET_HashCode *key); | 193 | const struct GNUNET_HashCode *key); |
185 | 194 | ||
186 | /** | 195 | /** |
@@ -194,8 +203,10 @@ close_service_room (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESS | |||
194 | * @param[in] hash Hash of message | 203 | * @param[in] hash Hash of message |
195 | */ | 204 | */ |
196 | void | 205 | void |
197 | handle_service_message (struct GNUNET_MESSENGER_Service *service, struct GNUNET_MESSENGER_SrvRoom *room, | 206 | handle_service_message (struct GNUNET_MESSENGER_Service *service, |
207 | struct GNUNET_MESSENGER_SrvRoom *room, | ||
198 | const struct GNUNET_MESSENGER_MemberSession *session, | 208 | const struct GNUNET_MESSENGER_MemberSession *session, |
199 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | 209 | const struct GNUNET_MESSENGER_Message *message, |
210 | const struct GNUNET_HashCode *hash); | ||
200 | 211 | ||
201 | #endif //GNUNET_SERVICE_MESSENGER_SERVICE_H | 212 | #endif //GNUNET_SERVICE_MESSENGER_SERVICE_H |