diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-05 15:04:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-05 15:04:48 +0000 |
commit | f0e8d8a426ab418be6aa37411e94c716e461bc75 (patch) | |
tree | 8490d2cda04bd5fd8fe2e81e1a5aa4ba027e3e75 /src/fs | |
parent | c068395ea77dbb8c9d1a63f549d9c0e0c7f148f5 (diff) | |
download | gnunet-f0e8d8a426ab418be6aa37411e94c716e461bc75.tar.gz gnunet-f0e8d8a426ab418be6aa37411e94c716e461bc75.zip |
-doxygen, remove GNUNET_FS_uri_sks_to_string_fancy (dead)
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs.h | 16 | ||||
-rw-r--r-- | src/fs/fs_api.h | 10 | ||||
-rw-r--r-- | src/fs/fs_uri.c | 30 |
3 files changed, 11 insertions, 45 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index 9a987303b..c4a3e00ae 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -37,7 +37,7 @@ | |||
37 | /** | 37 | /** |
38 | * Size of the individual blocks used for file-sharing. | 38 | * Size of the individual blocks used for file-sharing. |
39 | */ | 39 | */ |
40 | #define DBLOCK_SIZE (32*1024) | 40 | #define DBLOCK_SIZE (32 * 1024) |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * Blocksize to use when hashing files for indexing (blocksize for IO, | 43 | * Blocksize to use when hashing files for indexing (blocksize for IO, |
@@ -83,7 +83,7 @@ struct IndexStartMessage | |||
83 | { | 83 | { |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Message type will be GNUNET_MESSAGE_TYPE_FS_INDEX_START. | 86 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_INDEX_START. |
87 | */ | 87 | */ |
88 | struct GNUNET_MessageHeader header; | 88 | struct GNUNET_MessageHeader header; |
89 | 89 | ||
@@ -129,7 +129,7 @@ struct IndexInfoMessage | |||
129 | { | 129 | { |
130 | /** | 130 | /** |
131 | * Message type will be | 131 | * Message type will be |
132 | * GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY. | 132 | * #GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY. |
133 | */ | 133 | */ |
134 | struct GNUNET_MessageHeader header; | 134 | struct GNUNET_MessageHeader header; |
135 | 135 | ||
@@ -161,8 +161,7 @@ struct UnindexMessage | |||
161 | { | 161 | { |
162 | 162 | ||
163 | /** | 163 | /** |
164 | * Message type will be | 164 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_UNINDEX. |
165 | * GNUNET_MESSAGE_TYPE_FS_UNINDEX. | ||
166 | */ | 165 | */ |
167 | struct GNUNET_MessageHeader header; | 166 | struct GNUNET_MessageHeader header; |
168 | 167 | ||
@@ -206,8 +205,7 @@ struct SearchMessage | |||
206 | { | 205 | { |
207 | 206 | ||
208 | /** | 207 | /** |
209 | * Message type will be | 208 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_START_SEARCH. |
210 | * GNUNET_MESSAGE_TYPE_FS_START_SEARCH. | ||
211 | */ | 209 | */ |
212 | struct GNUNET_MessageHeader header; | 210 | struct GNUNET_MessageHeader header; |
213 | 211 | ||
@@ -268,7 +266,7 @@ struct PutMessage | |||
268 | { | 266 | { |
269 | 267 | ||
270 | /** | 268 | /** |
271 | * Message type will be GNUNET_MESSAGE_TYPE_FS_PUT. | 269 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_PUT. |
272 | */ | 270 | */ |
273 | struct GNUNET_MessageHeader header; | 271 | struct GNUNET_MessageHeader header; |
274 | 272 | ||
@@ -296,7 +294,7 @@ struct ClientPutMessage | |||
296 | { | 294 | { |
297 | 295 | ||
298 | /** | 296 | /** |
299 | * Message type will be GNUNET_MESSAGE_TYPE_FS_PUT. | 297 | * Message type will be #GNUNET_MESSAGE_TYPE_FS_PUT. |
300 | */ | 298 | */ |
301 | struct GNUNET_MessageHeader header; | 299 | struct GNUNET_MessageHeader header; |
302 | 300 | ||
diff --git a/src/fs/fs_api.h b/src/fs/fs_api.h index 83e8c3801..441e4fa9b 100644 --- a/src/fs/fs_api.h +++ b/src/fs/fs_api.h | |||
@@ -35,11 +35,6 @@ | |||
35 | #include "fs.h" | 35 | #include "fs.h" |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Size of the individual blocks used for file-sharing. | ||
39 | */ | ||
40 | #define DBLOCK_SIZE (32*1024) | ||
41 | |||
42 | /** | ||
43 | * Pick a multiple of 2 here to achive 8-byte alignment! We also | 38 | * Pick a multiple of 2 here to achive 8-byte alignment! We also |
44 | * probably want DBlocks to have (roughly) the same size as IBlocks. | 39 | * probably want DBlocks to have (roughly) the same size as IBlocks. |
45 | * With SHA-512, the optimal value is 32768 byte / 128 byte = 256 (128 | 40 | * With SHA-512, the optimal value is 32768 byte / 128 byte = 256 (128 |
@@ -206,10 +201,11 @@ struct GNUNET_FS_Uri | |||
206 | struct GNUNET_CRYPTO_EccPublicKey ns; | 201 | struct GNUNET_CRYPTO_EccPublicKey ns; |
207 | 202 | ||
208 | /** | 203 | /** |
209 | * Human-readable identifier chosen for this | 204 | * Human-readable identifier chosen for this entry in the |
210 | * entry in the namespace. | 205 | * namespace. |
211 | */ | 206 | */ |
212 | char *identifier; | 207 | char *identifier; |
208 | |||
213 | } sks; | 209 | } sks; |
214 | 210 | ||
215 | /** | 211 | /** |
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index e35287bef..23a368261 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -1352,38 +1352,10 @@ GNUNET_FS_uri_sks_get_content_id (const struct GNUNET_FS_Uri *uri) | |||
1352 | 1352 | ||
1353 | 1353 | ||
1354 | /** | 1354 | /** |
1355 | * Convert namespace URI to a human readable format | ||
1356 | * (using the namespace description, if available). | ||
1357 | * | ||
1358 | * @param cfg configuration to use | ||
1359 | * @param uri SKS uri to convert | ||
1360 | * @return NULL on error (not an SKS URI) | ||
1361 | */ | ||
1362 | char * | ||
1363 | GNUNET_FS_uri_sks_to_string_fancy (struct GNUNET_CONFIGURATION_Handle *cfg, | ||
1364 | const struct GNUNET_FS_Uri *uri) | ||
1365 | { | ||
1366 | char *ret; | ||
1367 | char *name; | ||
1368 | char *unique_name; | ||
1369 | |||
1370 | if (uri->type != GNUNET_FS_URI_SKS) | ||
1371 | return NULL; | ||
1372 | (void) GNUNET_FS_pseudonym_get_info (cfg, &uri->data.sks.ns, | ||
1373 | NULL, NULL, &name, NULL); | ||
1374 | unique_name = GNUNET_FS_pseudonym_name_uniquify (cfg, &uri->data.sks.ns, name, NULL); | ||
1375 | GNUNET_free (name); | ||
1376 | GNUNET_asprintf (&ret, "%s: %s", unique_name, uri->data.sks.identifier); | ||
1377 | GNUNET_free (unique_name); | ||
1378 | return ret; | ||
1379 | } | ||
1380 | |||
1381 | |||
1382 | /** | ||
1383 | * Is this a keyword URI? | 1355 | * Is this a keyword URI? |
1384 | * | 1356 | * |
1385 | * @param uri the uri | 1357 | * @param uri the uri |
1386 | * @return GNUNET_YES if this is a KSK uri | 1358 | * @return #GNUNET_YES if this is a KSK uri |
1387 | */ | 1359 | */ |
1388 | int | 1360 | int |
1389 | GNUNET_FS_uri_test_ksk (const struct GNUNET_FS_Uri *uri) | 1361 | GNUNET_FS_uri_test_ksk (const struct GNUNET_FS_Uri *uri) |