diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
commit | fe947a9704bed14c2fc74b2f2069596fe884cbad (patch) | |
tree | 644efdaa37d692b09f8e279bfe5e8b2ebe81448b /src/include | |
parent | a8b0ab037820f6a9f405be3855ce8d3ebbd4399b (diff) | |
download | gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.tar.gz gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.zip |
better comments
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_client_lib.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_common.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_container_lib.h | 11 | ||||
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 29 | ||||
-rw-r--r-- | src/include/gnunet_dht_service.h | 1 | ||||
-rw-r--r-- | src/include/gnunet_fs_service.h | 26 | ||||
-rw-r--r-- | src/include/gnunet_getopt_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_network_lib.h | 7 | ||||
-rw-r--r-- | src/include/gnunet_pseudonym_lib.h | 13 | ||||
-rw-r--r-- | src/include/gnunet_scheduler_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_server_lib.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_service_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_transport_service.h | 2 |
14 files changed, 60 insertions, 53 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h index 17f17ab50..20842de5c 100644 --- a/src/include/gnunet_client_lib.h +++ b/src/include/gnunet_client_lib.h | |||
@@ -101,7 +101,7 @@ void GNUNET_CLIENT_receive (struct GNUNET_CLIENT_Connection *sock, | |||
101 | * are free in the transmission buffer. May call the notify | 101 | * are free in the transmission buffer. May call the notify |
102 | * method immediately if enough space is available. | 102 | * method immediately if enough space is available. |
103 | * | 103 | * |
104 | * @param client connection to the service | 104 | * @param sock connection to the service |
105 | * @param size number of bytes to send | 105 | * @param size number of bytes to send |
106 | * @param timeout after how long should we give up (and call | 106 | * @param timeout after how long should we give up (and call |
107 | * notify with buf NULL and size 0)? | 107 | * notify with buf NULL and size 0)? |
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 402674f48..df601ac19 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -181,13 +181,13 @@ GNUNET_log_skip (unsigned int n, int check_reset); | |||
181 | /** | 181 | /** |
182 | * Setup logging. | 182 | * Setup logging. |
183 | * | 183 | * |
184 | * @param component default component to use | 184 | * @param comp default component to use |
185 | * @param loglevel what types of messages should be logged | 185 | * @param loglevel what types of messages should be logged |
186 | * @param logfile change logging to logfile (use NULL to keep stderr) | 186 | * @param logfile change logging to logfile (use NULL to keep stderr) |
187 | * @return GNUNET_OK on success, GNUNET_SYSERR if logfile could not be opened | 187 | * @return GNUNET_OK on success, GNUNET_SYSERR if logfile could not be opened |
188 | */ | 188 | */ |
189 | int | 189 | int |
190 | GNUNET_log_setup (const char *component, | 190 | GNUNET_log_setup (const char *comp, |
191 | const char *loglevel, const char *logfile); | 191 | const char *loglevel, const char *logfile); |
192 | 192 | ||
193 | /** | 193 | /** |
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 8e2f8e6d9..f05d29421 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -55,11 +55,11 @@ struct GNUNET_CONFIGURATION_Handle *GNUNET_CONFIGURATION_create (void); | |||
55 | /** | 55 | /** |
56 | * Duplicate an existing configuration object. | 56 | * Duplicate an existing configuration object. |
57 | * | 57 | * |
58 | * @param c configuration to duplicate | 58 | * @param cfg configuration to duplicate |
59 | * @return duplicate configuration | 59 | * @return duplicate configuration |
60 | */ | 60 | */ |
61 | struct GNUNET_CONFIGURATION_Handle * | 61 | struct GNUNET_CONFIGURATION_Handle * |
62 | GNUNET_CONFIGURATION_dup (const struct GNUNET_CONFIGURATION_Handle *c); | 62 | GNUNET_CONFIGURATION_dup (const struct GNUNET_CONFIGURATION_Handle *cfg); |
63 | 63 | ||
64 | 64 | ||
65 | /** | 65 | /** |
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index ec190fdc6..b9ce80d95 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h | |||
@@ -217,13 +217,13 @@ struct GNUNET_CONTAINER_MetaData *GNUNET_CONTAINER_meta_data_create (void); | |||
217 | /** | 217 | /** |
218 | * Duplicate a MetaData token. | 218 | * Duplicate a MetaData token. |
219 | * | 219 | * |
220 | * @param meta what to duplicate | 220 | * @param md what to duplicate |
221 | * @return duplicate meta-data container | 221 | * @return duplicate meta-data container |
222 | */ | 222 | */ |
223 | struct GNUNET_CONTAINER_MetaData *GNUNET_CONTAINER_meta_data_duplicate (const | 223 | struct GNUNET_CONTAINER_MetaData *GNUNET_CONTAINER_meta_data_duplicate (const |
224 | struct | 224 | struct |
225 | GNUNET_CONTAINER_MetaData | 225 | GNUNET_CONTAINER_MetaData |
226 | *meta); | 226 | *md); |
227 | 227 | ||
228 | /** | 228 | /** |
229 | * Free meta data. | 229 | * Free meta data. |
@@ -261,6 +261,7 @@ int GNUNET_CONTAINER_meta_data_insert (struct GNUNET_CONTAINER_MetaData *md, | |||
261 | /** | 261 | /** |
262 | * Remove an item. | 262 | * Remove an item. |
263 | * | 263 | * |
264 | * @param md metadata to manipulate | ||
264 | * @param type type of the item to remove | 265 | * @param type type of the item to remove |
265 | * @param data specific value to remove, NULL to remove all | 266 | * @param data specific value to remove, NULL to remove all |
266 | * entries of the given type | 267 | * entries of the given type |
@@ -373,7 +374,7 @@ enum GNUNET_CONTAINER_MetaDataSerializationOptions | |||
373 | * | 374 | * |
374 | * @param md metadata to serialize | 375 | * @param md metadata to serialize |
375 | * @param target where to write the serialized metadata | 376 | * @param target where to write the serialized metadata |
376 | * @param size maximum number of bytes available | 377 | * @param max maximum number of bytes available |
377 | * @param opt is it ok to just write SOME of the | 378 | * @param opt is it ok to just write SOME of the |
378 | * meta-data to match the size constraint, | 379 | * meta-data to match the size constraint, |
379 | * possibly discarding some data? | 380 | * possibly discarding some data? |
@@ -384,7 +385,7 @@ enum GNUNET_CONTAINER_MetaDataSerializationOptions | |||
384 | ssize_t GNUNET_CONTAINER_meta_data_serialize (const struct | 385 | ssize_t GNUNET_CONTAINER_meta_data_serialize (const struct |
385 | GNUNET_CONTAINER_MetaData *md, | 386 | GNUNET_CONTAINER_MetaData *md, |
386 | char *target, | 387 | char *target, |
387 | size_t size, | 388 | size_t max, |
388 | enum | 389 | enum |
389 | GNUNET_CONTAINER_MetaDataSerializationOptions | 390 | GNUNET_CONTAINER_MetaDataSerializationOptions |
390 | opt); | 391 | opt); |
@@ -958,7 +959,7 @@ void GNUNET_CONTAINER_slist_clear (struct GNUNET_CONTAINER_SList *l); | |||
958 | * Check if a list contains a certain element | 959 | * Check if a list contains a certain element |
959 | * @param l list | 960 | * @param l list |
960 | * @param buf payload buffer to find | 961 | * @param buf payload buffer to find |
961 | * @param lenght of the payload | 962 | * @param len length of the payload (number of bytes in buf) |
962 | */ | 963 | */ |
963 | int GNUNET_CONTAINER_slist_contains (const struct GNUNET_CONTAINER_SList *l, const void *buf, size_t len); | 964 | int GNUNET_CONTAINER_slist_contains (const struct GNUNET_CONTAINER_SList *l, const void *buf, size_t len); |
964 | 965 | ||
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 9b795cc75..76d28ad57 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -228,8 +228,7 @@ uint32_t GNUNET_CRYPTO_random_u32 (enum GNUNET_CRYPTO_Quality mode, | |||
228 | 228 | ||
229 | 229 | ||
230 | /** | 230 | /** |
231 | * Random on unsigned 64-bit values. We break them down into signed | 231 | * Random on unsigned 64-bit values. |
232 | * 32-bit values and reassemble the 64-bit random value bit-wise. | ||
233 | * | 232 | * |
234 | * @param mode desired quality of the random number | 233 | * @param mode desired quality of the random number |
235 | * @param max value returned will be in range [0,max) (exclusive) | 234 | * @param max value returned will be in range [0,max) (exclusive) |
@@ -278,7 +277,7 @@ int GNUNET_CRYPTO_aes_check_session_key (const struct | |||
278 | * @param sessionkey the key used to encrypt | 277 | * @param sessionkey the key used to encrypt |
279 | * @param iv the initialization vector to use, use INITVALUE | 278 | * @param iv the initialization vector to use, use INITVALUE |
280 | * for streams. | 279 | * for streams. |
281 | * @returns the size of the encrypted block, -1 for errors | 280 | * @return the size of the encrypted block, -1 for errors |
282 | */ | 281 | */ |
283 | ssize_t GNUNET_CRYPTO_aes_encrypt (const void *block, | 282 | ssize_t GNUNET_CRYPTO_aes_encrypt (const void *block, |
284 | size_t len, | 283 | size_t len, |
@@ -307,10 +306,10 @@ ssize_t GNUNET_CRYPTO_aes_decrypt (const void *block, | |||
307 | 306 | ||
308 | 307 | ||
309 | /** | 308 | /** |
310 | * Convert GNUNET_CRYPTO_hash to ASCII encoding. | 309 | * Convert hash to ASCII encoding. |
311 | * @param block the GNUNET_CRYPTO_hash code | 310 | * @param block the hash code |
312 | * @param result where to store the encoding (struct GNUNET_CRYPTO_HashAsciiEncoded can be | 311 | * @param result where to store the encoding (struct GNUNET_CRYPTO_HashAsciiEncoded can be |
313 | * safely cast to char*, a '\0' termination is set). | 312 | * safely cast to char*, a '\\0' termination is set). |
314 | */ | 313 | */ |
315 | void GNUNET_CRYPTO_hash_to_enc (const GNUNET_HashCode * block, | 314 | void GNUNET_CRYPTO_hash_to_enc (const GNUNET_HashCode * block, |
316 | struct GNUNET_CRYPTO_HashAsciiEncoded | 315 | struct GNUNET_CRYPTO_HashAsciiEncoded |
@@ -515,11 +514,11 @@ struct GNUNET_CRYPTO_RsaPrivateKey | |||
515 | * Deterministically (!) create a private key using only the | 514 | * Deterministically (!) create a private key using only the |
516 | * given HashCode as input to the PRNG. | 515 | * given HashCode as input to the PRNG. |
517 | * | 516 | * |
518 | * @param input "random" input to PRNG | 517 | * @param hc "random" input to PRNG |
519 | * @return some private key purely dependent on input | 518 | * @return some private key purely dependent on input |
520 | */ | 519 | */ |
521 | struct GNUNET_CRYPTO_RsaPrivateKey | 520 | struct GNUNET_CRYPTO_RsaPrivateKey |
522 | *GNUNET_CRYPTO_rsa_key_create_from_hash (const GNUNET_HashCode * input); | 521 | *GNUNET_CRYPTO_rsa_key_create_from_hash (const GNUNET_HashCode * hc); |
523 | 522 | ||
524 | 523 | ||
525 | /** | 524 | /** |
@@ -550,7 +549,7 @@ void GNUNET_CRYPTO_rsa_key_get_public (const struct | |||
550 | * @param size the size of block | 549 | * @param size the size of block |
551 | * @param publicKey the encoded public key used to encrypt | 550 | * @param publicKey the encoded public key used to encrypt |
552 | * @param target where to store the encrypted block | 551 | * @param target where to store the encrypted block |
553 | * @returns GNUNET_SYSERR on error, GNUNET_OK if ok | 552 | * @return GNUNET_SYSERR on error, GNUNET_OK if ok |
554 | */ | 553 | */ |
555 | int GNUNET_CRYPTO_rsa_encrypt (const void *block, | 554 | int GNUNET_CRYPTO_rsa_encrypt (const void *block, |
556 | size_t size, | 555 | size_t size, |
@@ -566,14 +565,14 @@ int GNUNET_CRYPTO_rsa_encrypt (const void *block, | |||
566 | * @param key the key to use | 565 | * @param key the key to use |
567 | * @param block the data to decrypt, encoded as returned by encrypt, not consumed | 566 | * @param block the data to decrypt, encoded as returned by encrypt, not consumed |
568 | * @param result pointer to a location where the result can be stored | 567 | * @param result pointer to a location where the result can be stored |
569 | * @param size how many bytes of a result are expected? Must be exact. | 568 | * @param max how many bytes of a result are expected? Must be exact. |
570 | * @returns the size of the decrypted block (that is, size) or -1 on error | 569 | * @return the size of the decrypted block (that is, size) or -1 on error |
571 | */ | 570 | */ |
572 | ssize_t GNUNET_CRYPTO_rsa_decrypt (const struct GNUNET_CRYPTO_RsaPrivateKey *key, | 571 | ssize_t GNUNET_CRYPTO_rsa_decrypt (const struct GNUNET_CRYPTO_RsaPrivateKey *key, |
573 | const struct GNUNET_CRYPTO_RsaEncryptedData | 572 | const struct GNUNET_CRYPTO_RsaEncryptedData |
574 | *block, | 573 | *block, |
575 | void *result, | 574 | void *result, |
576 | size_t size); | 575 | size_t max); |
577 | 576 | ||
578 | 577 | ||
579 | /** | 578 | /** |
@@ -581,13 +580,13 @@ ssize_t GNUNET_CRYPTO_rsa_decrypt (const struct GNUNET_CRYPTO_RsaPrivateKey *key | |||
581 | * | 580 | * |
582 | * @param key private key to use for the signing | 581 | * @param key private key to use for the signing |
583 | * @param purpose what to sign (size, purpose) | 582 | * @param purpose what to sign (size, purpose) |
584 | * @param result where to write the signature | 583 | * @param sig where to write the signature |
585 | * @return GNUNET_SYSERR on error, GNUNET_OK on success | 584 | * @return GNUNET_SYSERR on error, GNUNET_OK on success |
586 | */ | 585 | */ |
587 | int GNUNET_CRYPTO_rsa_sign (const struct GNUNET_CRYPTO_RsaPrivateKey *key, | 586 | int GNUNET_CRYPTO_rsa_sign (const struct GNUNET_CRYPTO_RsaPrivateKey *key, |
588 | const struct GNUNET_CRYPTO_RsaSignaturePurpose | 587 | const struct GNUNET_CRYPTO_RsaSignaturePurpose |
589 | *purpose, | 588 | *purpose, |
590 | struct GNUNET_CRYPTO_RsaSignature *result); | 589 | struct GNUNET_CRYPTO_RsaSignature *sig); |
591 | 590 | ||
592 | 591 | ||
593 | /** | 592 | /** |
@@ -598,7 +597,7 @@ int GNUNET_CRYPTO_rsa_sign (const struct GNUNET_CRYPTO_RsaPrivateKey *key, | |||
598 | * @param validate block to validate (size, purpose, data) | 597 | * @param validate block to validate (size, purpose, data) |
599 | * @param sig signature that is being validated | 598 | * @param sig signature that is being validated |
600 | * @param publicKey public key of the signer | 599 | * @param publicKey public key of the signer |
601 | * @returns GNUNET_OK if ok, GNUNET_SYSERR if invalid | 600 | * @return GNUNET_OK if ok, GNUNET_SYSERR if invalid |
602 | */ | 601 | */ |
603 | int GNUNET_CRYPTO_rsa_verify (uint32_t purpose, | 602 | int GNUNET_CRYPTO_rsa_verify (uint32_t purpose, |
604 | const struct GNUNET_CRYPTO_RsaSignaturePurpose | 603 | const struct GNUNET_CRYPTO_RsaSignaturePurpose |
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h index 0dab0bcbc..4bf3ce15b 100644 --- a/src/include/gnunet_dht_service.h +++ b/src/include/gnunet_dht_service.h | |||
@@ -93,6 +93,7 @@ typedef void (*GNUNET_DHT_Iterator)(void *cls, | |||
93 | /** | 93 | /** |
94 | * Perform an asynchronous GET operation on the DHT identified. | 94 | * Perform an asynchronous GET operation on the DHT identified. |
95 | * | 95 | * |
96 | * @param h handle to the DHT service | ||
96 | * @param type expected type of the response object | 97 | * @param type expected type of the response object |
97 | * @param key the key to look up | 98 | * @param key the key to look up |
98 | * @param iter function to call on each result | 99 | * @param iter function to call on each result |
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index ae1b46a89..5449f6324 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -198,7 +198,7 @@ GNUNET_FS_uri_loc_get_expiration (const struct GNUNET_FS_Uri *uri); | |||
198 | /** | 198 | /** |
199 | * Construct a location URI (this peer will be used for the location). | 199 | * Construct a location URI (this peer will be used for the location). |
200 | * | 200 | * |
201 | * @param baseURI content offered by the sender | 201 | * @param baseUri content offered by the sender |
202 | * @param cfg configuration information (used to find our hostkey) | 202 | * @param cfg configuration information (used to find our hostkey) |
203 | * @param expiration_time how long will the content be offered? | 203 | * @param expiration_time how long will the content be offered? |
204 | * @return the location URI, NULL on error | 204 | * @return the location URI, NULL on error |
@@ -1552,10 +1552,10 @@ GNUNET_FS_file_information_get_id (struct GNUNET_FS_FileInformation *s); | |||
1552 | * file information data should already call "sync" internally, | 1552 | * file information data should already call "sync" internally, |
1553 | * so this function is likely not useful for clients. | 1553 | * so this function is likely not useful for clients. |
1554 | * | 1554 | * |
1555 | * @param s the struct to sync | 1555 | * @param fi the struct to sync |
1556 | */ | 1556 | */ |
1557 | void | 1557 | void |
1558 | GNUNET_FS_file_information_sync (struct GNUNET_FS_FileInformation *s); | 1558 | GNUNET_FS_file_information_sync (struct GNUNET_FS_FileInformation *f); |
1559 | 1559 | ||
1560 | 1560 | ||
1561 | /** | 1561 | /** |
@@ -1809,14 +1809,14 @@ GNUNET_FS_file_information_create_empty_directory (void *client_info, | |||
1809 | * "GNUNET_FS_publish_start" already. | 1809 | * "GNUNET_FS_publish_start" already. |
1810 | * | 1810 | * |
1811 | * @param dir the directory | 1811 | * @param dir the directory |
1812 | * @param end the entry to add; the entry must not have been | 1812 | * @param ent the entry to add; the entry must not have been |
1813 | * added to any other directory at this point and | 1813 | * added to any other directory at this point and |
1814 | * must not include "dir" in its structure | 1814 | * must not include "dir" in its structure |
1815 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 1815 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
1816 | */ | 1816 | */ |
1817 | int | 1817 | int |
1818 | GNUNET_FS_file_information_add (struct GNUNET_FS_FileInformation *dir, | 1818 | GNUNET_FS_file_information_add (struct GNUNET_FS_FileInformation *dir, |
1819 | struct GNUNET_FS_FileInformation *end); | 1819 | struct GNUNET_FS_FileInformation *ent); |
1820 | 1820 | ||
1821 | 1821 | ||
1822 | /** | 1822 | /** |
@@ -1926,7 +1926,7 @@ typedef void (*GNUNET_FS_PublishContinuation)(void *cls, | |||
1926 | * Publish a KBlock on GNUnet. | 1926 | * Publish a KBlock on GNUnet. |
1927 | * | 1927 | * |
1928 | * @param h handle to the file sharing subsystem | 1928 | * @param h handle to the file sharing subsystem |
1929 | * @param keywords keywords to use | 1929 | * @param ksk_uri keywords to use |
1930 | * @param meta metadata to use | 1930 | * @param meta metadata to use |
1931 | * @param uri URI to refer to in the KBlock | 1931 | * @param uri URI to refer to in the KBlock |
1932 | * @param expirationTime when the KBlock expires | 1932 | * @param expirationTime when the KBlock expires |
@@ -1937,7 +1937,7 @@ typedef void (*GNUNET_FS_PublishContinuation)(void *cls, | |||
1937 | */ | 1937 | */ |
1938 | void | 1938 | void |
1939 | GNUNET_FS_publish_ksk (struct GNUNET_FS_Handle *h, | 1939 | GNUNET_FS_publish_ksk (struct GNUNET_FS_Handle *h, |
1940 | struct GNUNET_FS_Uri *keywords, | 1940 | struct GNUNET_FS_Uri *ksk_uri, |
1941 | struct GNUNET_CONTAINER_MetaData *meta, | 1941 | struct GNUNET_CONTAINER_MetaData *meta, |
1942 | struct GNUNET_FS_Uri *uri, | 1942 | struct GNUNET_FS_Uri *uri, |
1943 | struct GNUNET_TIME_Absolute expirationTime, | 1943 | struct GNUNET_TIME_Absolute expirationTime, |
@@ -2258,11 +2258,11 @@ GNUNET_FS_file_download_start (struct GNUNET_FS_Handle *h, | |||
2258 | /** | 2258 | /** |
2259 | * Stop a download (aborts if download is incomplete). | 2259 | * Stop a download (aborts if download is incomplete). |
2260 | * | 2260 | * |
2261 | * @param rm handle for the download | 2261 | * @param dc handle for the download |
2262 | * @param do_delete delete files of incomplete downloads | 2262 | * @param do_delete delete files of incomplete downloads |
2263 | */ | 2263 | */ |
2264 | void | 2264 | void |
2265 | GNUNET_FS_file_download_stop (struct GNUNET_FS_DownloadContext *rm, | 2265 | GNUNET_FS_file_download_stop (struct GNUNET_FS_DownloadContext *dc, |
2266 | int do_delete); | 2266 | int do_delete); |
2267 | 2267 | ||
2268 | 2268 | ||
@@ -2439,14 +2439,14 @@ GNUNET_FS_directory_builder_add (struct GNUNET_FS_DirectoryBuilder *bld, | |||
2439 | * in-memory. | 2439 | * in-memory. |
2440 | * | 2440 | * |
2441 | * @param bld directory to finish | 2441 | * @param bld directory to finish |
2442 | * @param size set to the number of bytes needed | 2442 | * @param rsize set to the number of bytes needed |
2443 | * @param data set to the encoded directory | 2443 | * @param rdata set to the encoded directory |
2444 | * @return GNUNET_OK on success | 2444 | * @return GNUNET_OK on success |
2445 | */ | 2445 | */ |
2446 | int | 2446 | int |
2447 | GNUNET_FS_directory_builder_finish (struct GNUNET_FS_DirectoryBuilder *bld, | 2447 | GNUNET_FS_directory_builder_finish (struct GNUNET_FS_DirectoryBuilder *bld, |
2448 | size_t *size, | 2448 | size_t *rsize, |
2449 | void **data); | 2449 | void **rdata); |
2450 | 2450 | ||
2451 | 2451 | ||
2452 | #if 0 /* keep Emacsens' auto-indent happy */ | 2452 | #if 0 /* keep Emacsens' auto-indent happy */ |
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h index 44525e2f2..d5f3d1198 100644 --- a/src/include/gnunet_getopt_lib.h +++ b/src/include/gnunet_getopt_lib.h | |||
@@ -186,14 +186,14 @@ struct GNUNET_GETOPT_CommandLineOption | |||
186 | /** | 186 | /** |
187 | * Parse the command line. | 187 | * Parse the command line. |
188 | * | 188 | * |
189 | * @param binaryName name of the binary / application with options | 189 | * @param binaryOptions Name of application with option summary |
190 | * @param allOptions defined options and handlers | 190 | * @param allOptions defined options and handlers |
191 | * @param argc number of arguments | 191 | * @param argc number of arguments |
192 | * @param argv actual arguments | 192 | * @param argv actual arguments |
193 | * @return index into argv with first non-option | 193 | * @return index into argv with first non-option |
194 | * argument, or GNUNET_SYSERR on error | 194 | * argument, or GNUNET_SYSERR on error |
195 | */ | 195 | */ |
196 | int GNUNET_GETOPT_run (const char *binaryName, | 196 | int GNUNET_GETOPT_run (const char *binaryOptions, |
197 | const struct GNUNET_GETOPT_CommandLineOption | 197 | const struct GNUNET_GETOPT_CommandLineOption |
198 | *allOptions, unsigned int argc, char *const *argv); | 198 | *allOptions, unsigned int argc, char *const *argv); |
199 | 199 | ||
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index d966c3afe..e4ba55854 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -100,11 +100,12 @@ int GNUNET_NETWORK_socket_close (struct GNUNET_NETWORK_Handle *desc); | |||
100 | * | 100 | * |
101 | * @param desc socket to connect | 101 | * @param desc socket to connect |
102 | * @param address peer address | 102 | * @param address peer address |
103 | * @param length of address | 103 | * @param address_len of address |
104 | * @return GNUNET_OK on success, GNUNET_SYSERR otherwise | 104 | * @return GNUNET_OK on success, GNUNET_SYSERR otherwise |
105 | */ | 105 | */ |
106 | int GNUNET_NETWORK_socket_connect (const struct GNUNET_NETWORK_Handle *desc, | 106 | int GNUNET_NETWORK_socket_connect (const struct GNUNET_NETWORK_Handle *desc, |
107 | const struct sockaddr *address, socklen_t address_len); | 107 | const struct sockaddr *address, |
108 | socklen_t address_len); | ||
108 | 109 | ||
109 | 110 | ||
110 | /** | 111 | /** |
@@ -262,7 +263,7 @@ void GNUNET_NETWORK_fdset_copy(struct GNUNET_NETWORK_FDSet *to, | |||
262 | * Copy a native fd set | 263 | * Copy a native fd set |
263 | * @param to destination | 264 | * @param to destination |
264 | * @param from native source set | 265 | * @param from native source set |
265 | * @param the biggest socket number in from + 1 | 266 | * @param nfds the biggest socket number in from + 1 |
266 | */ | 267 | */ |
267 | void GNUNET_NETWORK_fdset_copy_native (struct GNUNET_NETWORK_FDSet *to, | 268 | void GNUNET_NETWORK_fdset_copy_native (struct GNUNET_NETWORK_FDSet *to, |
268 | const fd_set *from, | 269 | const fd_set *from, |
diff --git a/src/include/gnunet_pseudonym_lib.h b/src/include/gnunet_pseudonym_lib.h index ced9bf387..ba240941b 100644 --- a/src/include/gnunet_pseudonym_lib.h +++ b/src/include/gnunet_pseudonym_lib.h | |||
@@ -55,20 +55,25 @@ typedef int (*GNUNET_PSEUDONYM_Iterator) (void *cls, | |||
55 | /** | 55 | /** |
56 | * Change the ranking of a pseudonym. | 56 | * Change the ranking of a pseudonym. |
57 | * | 57 | * |
58 | * @param pseudonym id of the pseudonym | 58 | * @param cfg overall configuration |
59 | * @param nsid id of the pseudonym | ||
59 | * @param delta by how much should the rating be changed? | 60 | * @param delta by how much should the rating be changed? |
60 | * @return new rating of the namespace | 61 | * @return new rating of the namespace |
61 | */ | 62 | */ |
62 | int GNUNET_PSEUDONYM_rank (const struct GNUNET_CONFIGURATION_Handle *cfg, | 63 | int GNUNET_PSEUDONYM_rank (const struct GNUNET_CONFIGURATION_Handle *cfg, |
63 | const GNUNET_HashCode * pseudonym, int delta); | 64 | const GNUNET_HashCode *nsid, int delta); |
64 | 65 | ||
65 | /** | 66 | /** |
66 | * Add a pseudonym to the set of known pseudonyms. | 67 | * Add a pseudonym to the set of known pseudonyms. |
68 | * For all pseudonym advertisements that we discover | ||
69 | * FS should automatically call this function. | ||
67 | * | 70 | * |
68 | * @param pseudonym the pseudonym's identifier | 71 | * @param cfg overall configuration |
72 | * @param id the pseudonym identifier | ||
73 | * @param meta metadata for the pseudonym | ||
69 | */ | 74 | */ |
70 | void GNUNET_PSEUDONYM_add (const struct GNUNET_CONFIGURATION_Handle *cfg, | 75 | void GNUNET_PSEUDONYM_add (const struct GNUNET_CONFIGURATION_Handle *cfg, |
71 | const GNUNET_HashCode * pseudo, | 76 | const GNUNET_HashCode *id, |
72 | const struct GNUNET_CONTAINER_MetaData *meta); | 77 | const struct GNUNET_CONTAINER_MetaData *meta); |
73 | 78 | ||
74 | 79 | ||
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h index db94f05ab..621e57fcf 100644 --- a/src/include/gnunet_scheduler_lib.h +++ b/src/include/gnunet_scheduler_lib.h | |||
@@ -482,7 +482,6 @@ GNUNET_SCHEDULER_add_write_file (struct GNUNET_SCHEDULER_Handle *sched, | |||
482 | * are satisfied). Use GNUNET_SCHEDULER_NO_TASK to not have any dependency | 482 | * are satisfied). Use GNUNET_SCHEDULER_NO_TASK to not have any dependency |
483 | * on completion of other tasks. | 483 | * on completion of other tasks. |
484 | * @param delay how long should we wait? Use GNUNET_TIME_UNIT_FOREVER_REL for "forever" | 484 | * @param delay how long should we wait? Use GNUNET_TIME_UNIT_FOREVER_REL for "forever" |
485 | * @param nfds highest-numbered file descriptor in any of the two sets plus one | ||
486 | * @param rs set of file descriptors we want to read (can be NULL) | 485 | * @param rs set of file descriptors we want to read (can be NULL) |
487 | * @param ws set of file descriptors we want to write (can be NULL) | 486 | * @param ws set of file descriptors we want to write (can be NULL) |
488 | * @param main main function of the task | 487 | * @param main main function of the task |
@@ -497,7 +496,8 @@ GNUNET_SCHEDULER_add_select (struct GNUNET_SCHEDULER_Handle *sched, | |||
497 | GNUNET_SCHEDULER_TaskIdentifier | 496 | GNUNET_SCHEDULER_TaskIdentifier |
498 | prerequisite_task, | 497 | prerequisite_task, |
499 | struct GNUNET_TIME_Relative delay, | 498 | struct GNUNET_TIME_Relative delay, |
500 | const struct GNUNET_NETWORK_FDSet * rs, const struct GNUNET_NETWORK_FDSet * ws, | 499 | const struct GNUNET_NETWORK_FDSet * rs, |
500 | const struct GNUNET_NETWORK_FDSet * ws, | ||
501 | GNUNET_SCHEDULER_Task main, void *cls); | 501 | GNUNET_SCHEDULER_Task main, void *cls); |
502 | 502 | ||
503 | #if 0 /* keep Emacsens' auto-indent happy */ | 503 | #if 0 /* keep Emacsens' auto-indent happy */ |
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h index 135b1f196..570985d16 100644 --- a/src/include/gnunet_server_lib.h +++ b/src/include/gnunet_server_lib.h | |||
@@ -329,7 +329,7 @@ typedef void (*GNUNET_SERVER_DestroyCallback) (void *cls); | |||
329 | * @param server the server to use | 329 | * @param server the server to use |
330 | * @param chandle opaque handle for the connection | 330 | * @param chandle opaque handle for the connection |
331 | * @param creceive receive function for the connection | 331 | * @param creceive receive function for the connection |
332 | * @param creceive_cancel cancel receive function for the connection | 332 | * @param ccancel cancel receive function for the connection |
333 | * @param cnotify transmit notification function for the connection | 333 | * @param cnotify transmit notification function for the connection |
334 | * @param cnotify_cancel transmit notification cancellation function for the connection | 334 | * @param cnotify_cancel transmit notification cancellation function for the connection |
335 | * @param ccheck function to test if the connection is still up | 335 | * @param ccheck function to test if the connection is still up |
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h index 4d0eefb98..0c69d297c 100644 --- a/src/include/gnunet_service_lib.h +++ b/src/include/gnunet_service_lib.h | |||
@@ -123,9 +123,9 @@ struct GNUNET_SERVER_Handle *GNUNET_SERVICE_get_server (struct | |||
123 | /** | 123 | /** |
124 | * Stop a service that was started with "GNUNET_SERVICE_start". | 124 | * Stop a service that was started with "GNUNET_SERVICE_start". |
125 | * | 125 | * |
126 | * @param ctx the service context returned from the start function | 126 | * @param sctx the service context returned from the start function |
127 | */ | 127 | */ |
128 | void GNUNET_SERVICE_stop (struct GNUNET_SERVICE_Context *ctx); | 128 | void GNUNET_SERVICE_stop (struct GNUNET_SERVICE_Context *sctx); |
129 | 129 | ||
130 | 130 | ||
131 | #if 0 /* keep Emacsens' auto-indent happy */ | 131 | #if 0 /* keep Emacsens' auto-indent happy */ |
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index 604610774..8bf295567 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h | |||
@@ -106,7 +106,7 @@ typedef void | |||
106 | * @param cls closure for the callbacks | 106 | * @param cls closure for the callbacks |
107 | * @param rec receive function to call | 107 | * @param rec receive function to call |
108 | * @param nc function to call on connect events | 108 | * @param nc function to call on connect events |
109 | * @param dc function to call on disconnect events | 109 | * @param nd function to call on disconnect events |
110 | */ | 110 | */ |
111 | struct GNUNET_TRANSPORT_Handle *GNUNET_TRANSPORT_connect (struct | 111 | struct GNUNET_TRANSPORT_Handle *GNUNET_TRANSPORT_connect (struct |
112 | GNUNET_SCHEDULER_Handle | 112 | GNUNET_SCHEDULER_Handle |