diff options
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index 25bc95e62..294a433fc 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file fs/fs.h | 22 | * @file fs/fs.h |
@@ -50,8 +50,7 @@ | |||
50 | /** | 50 | /** |
51 | * @brief content hash key | 51 | * @brief content hash key |
52 | */ | 52 | */ |
53 | struct ContentHashKey | 53 | struct ContentHashKey { |
54 | { | ||
55 | /** | 54 | /** |
56 | * Hash of the original content, used for encryption. | 55 | * Hash of the original content, used for encryption. |
57 | */ | 56 | */ |
@@ -71,9 +70,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
71 | * Message sent from a GNUnet (fs) publishing activity to sign | 70 | * Message sent from a GNUnet (fs) publishing activity to sign |
72 | * a LOC URI. | 71 | * a LOC URI. |
73 | */ | 72 | */ |
74 | struct RequestLocSignatureMessage | 73 | struct RequestLocSignatureMessage { |
75 | { | ||
76 | |||
77 | /** | 74 | /** |
78 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGN. | 75 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGN. |
79 | */ | 76 | */ |
@@ -105,9 +102,7 @@ struct RequestLocSignatureMessage | |||
105 | /** | 102 | /** |
106 | * Message sent from the service with the signed LOC URI. | 103 | * Message sent from the service with the signed LOC URI. |
107 | */ | 104 | */ |
108 | struct ResponseLocSignatureMessage | 105 | struct ResponseLocSignatureMessage { |
109 | { | ||
110 | |||
111 | /** | 106 | /** |
112 | * Message type will be | 107 | * Message type will be |
113 | * #GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGNATURE. | 108 | * #GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGNATURE. |
@@ -150,9 +145,7 @@ struct ResponseLocSignatureMessage | |||
150 | * computing it; this is an optimization that should be safe given | 145 | * computing it; this is an optimization that should be safe given |
151 | * that the client is not our adversary). | 146 | * that the client is not our adversary). |
152 | */ | 147 | */ |
153 | struct IndexStartMessage | 148 | struct IndexStartMessage { |
154 | { | ||
155 | |||
156 | /** | 149 | /** |
157 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_INDEX_START. | 150 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_INDEX_START. |
158 | */ | 151 | */ |
@@ -188,7 +181,6 @@ struct IndexStartMessage | |||
188 | /* this is followed by a 0-terminated | 181 | /* this is followed by a 0-terminated |
189 | * filename of a file with the hash | 182 | * filename of a file with the hash |
190 | * "file_id" as seen by the client */ | 183 | * "file_id" as seen by the client */ |
191 | |||
192 | }; | 184 | }; |
193 | 185 | ||
194 | 186 | ||
@@ -196,8 +188,7 @@ struct IndexStartMessage | |||
196 | * Message send by FS service in response to a request | 188 | * Message send by FS service in response to a request |
197 | * asking for a list of all indexed files. | 189 | * asking for a list of all indexed files. |
198 | */ | 190 | */ |
199 | struct IndexInfoMessage | 191 | struct IndexInfoMessage { |
200 | { | ||
201 | /** | 192 | /** |
202 | * Message type will be | 193 | * Message type will be |
203 | * #GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY. | 194 | * #GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY. |
@@ -217,7 +208,6 @@ struct IndexInfoMessage | |||
217 | /* this is followed by a 0-terminated | 208 | /* this is followed by a 0-terminated |
218 | * filename of a file with the hash | 209 | * filename of a file with the hash |
219 | * "file_id" as seen by the client */ | 210 | * "file_id" as seen by the client */ |
220 | |||
221 | }; | 211 | }; |
222 | 212 | ||
223 | 213 | ||
@@ -228,9 +218,7 @@ struct IndexInfoMessage | |||
228 | * files and response with a confirmation message (even if the file | 218 | * files and response with a confirmation message (even if the file |
229 | * was already not on the list). | 219 | * was already not on the list). |
230 | */ | 220 | */ |
231 | struct UnindexMessage | 221 | struct UnindexMessage { |
232 | { | ||
233 | |||
234 | /** | 222 | /** |
235 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_UNINDEX. | 223 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_UNINDEX. |
236 | */ | 224 | */ |
@@ -245,7 +233,6 @@ struct UnindexMessage | |||
245 | * Hash of the file that we will unindex. | 233 | * Hash of the file that we will unindex. |
246 | */ | 234 | */ |
247 | struct GNUNET_HashCode file_id; | 235 | struct GNUNET_HashCode file_id; |
248 | |||
249 | }; | 236 | }; |
250 | 237 | ||
251 | 238 | ||
@@ -272,9 +259,7 @@ struct UnindexMessage | |||
272 | * Message sent from a GNUnet (fs) search activity to the | 259 | * Message sent from a GNUnet (fs) search activity to the |
273 | * gnunet-service-fs to start a search. | 260 | * gnunet-service-fs to start a search. |
274 | */ | 261 | */ |
275 | struct SearchMessage | 262 | struct SearchMessage { |
276 | { | ||
277 | |||
278 | /** | 263 | /** |
279 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_START_SEARCH. | 264 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_START_SEARCH. |
280 | */ | 265 | */ |
@@ -333,9 +318,7 @@ struct SearchMessage | |||
333 | * single response are considered done. This message is transmitted | 318 | * single response are considered done. This message is transmitted |
334 | * between peers. | 319 | * between peers. |
335 | */ | 320 | */ |
336 | struct PutMessage | 321 | struct PutMessage { |
337 | { | ||
338 | |||
339 | /** | 322 | /** |
340 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_PUT. | 323 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_PUT. |
341 | */ | 324 | */ |
@@ -352,7 +335,6 @@ struct PutMessage | |||
352 | struct GNUNET_TIME_AbsoluteNBO expiration; | 335 | struct GNUNET_TIME_AbsoluteNBO expiration; |
353 | 336 | ||
354 | /* this is followed by the actual encrypted content */ | 337 | /* this is followed by the actual encrypted content */ |
355 | |||
356 | }; | 338 | }; |
357 | 339 | ||
358 | /** | 340 | /** |
@@ -361,9 +343,7 @@ struct PutMessage | |||
361 | * single response are considered done. This message is transmitted | 343 | * single response are considered done. This message is transmitted |
362 | * between the service and a client. | 344 | * between the service and a client. |
363 | */ | 345 | */ |
364 | struct ClientPutMessage | 346 | struct ClientPutMessage { |
365 | { | ||
366 | |||
367 | /** | 347 | /** |
368 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_PUT. | 348 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_PUT. |
369 | */ | 349 | */ |
@@ -398,7 +378,6 @@ struct ClientPutMessage | |||
398 | uint32_t respect_offered; | 378 | uint32_t respect_offered; |
399 | 379 | ||
400 | /* this is followed by the actual encrypted content */ | 380 | /* this is followed by the actual encrypted content */ |
401 | |||
402 | }; | 381 | }; |
403 | GNUNET_NETWORK_STRUCT_END | 382 | GNUNET_NETWORK_STRUCT_END |
404 | 383 | ||