diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-13 09:18:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-13 09:18:29 +0000 |
commit | 0e3f0fd50edc4e8b59fb7359c8592d91de806b86 (patch) | |
tree | 76241ea0cccf2f7c08fa31229c4c3d57418e7f9a | |
parent | 5ec7a9372394fe793560b3cbc8b8b26dea75c694 (diff) | |
download | gnunet-0e3f0fd50edc4e8b59fb7359c8592d91de806b86.tar.gz gnunet-0e3f0fd50edc4e8b59fb7359c8592d91de806b86.zip |
-doxygen fixes
-rw-r--r-- | src/hostlist/hostlist-client.c | 6 | ||||
-rw-r--r-- | src/include/gnunet_namestore_service.h | 46 | ||||
-rw-r--r-- | src/namestore/namestore_api_common.c | 33 | ||||
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 2 |
4 files changed, 39 insertions, 48 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 713d3cb04..4ad03bc78 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c | |||
@@ -1226,7 +1226,13 @@ primary_task (void *cls, int success) | |||
1226 | 1226 | ||
1227 | 1227 | ||
1228 | /** | 1228 | /** |
1229 | * We've received the previous delay value from statistics. Remember it. | ||
1230 | * | ||
1231 | * @param cls NULL, unused | ||
1232 | * @param subsystem should be "hostlist", unused | ||
1233 | * @param name will be "milliseconds between hostlist downloads", unused | ||
1229 | * @param value previous delay value, in milliseconds (!) | 1234 | * @param value previous delay value, in milliseconds (!) |
1235 | * @param is_persistent unused, will be GNUNET_YES | ||
1230 | */ | 1236 | */ |
1231 | static int | 1237 | static int |
1232 | process_stat (void *cls, const char *subsystem, const char *name, | 1238 | process_stat (void *cls, const char *subsystem, const char *name, |
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index a1753df59..e47b1ee3d 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -365,7 +365,7 @@ GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, | |||
365 | * Cancel a namestore operation. The final callback from the | 365 | * Cancel a namestore operation. The final callback from the |
366 | * operation must not have been done yet. Must be called on any | 366 | * operation must not have been done yet. Must be called on any |
367 | * namestore operation that has not yet completed prior to calling | 367 | * namestore operation that has not yet completed prior to calling |
368 | * 'GNUNET_NAMESTORE_disconnect'. | 368 | * #GNUNET_NAMESTORE_disconnect. |
369 | * | 369 | * |
370 | * @param qe operation to cancel | 370 | * @param qe operation to cancel |
371 | */ | 371 | */ |
@@ -375,13 +375,11 @@ GNUNET_NAMESTORE_cancel (struct GNUNET_NAMESTORE_QueueEntry *qe); | |||
375 | 375 | ||
376 | /** | 376 | /** |
377 | * Starts a new zone iteration (used to periodically PUT all of our | 377 | * Starts a new zone iteration (used to periodically PUT all of our |
378 | * records into our DHT). "proc" will be called once immediately, and | 378 | * records into our DHT). @a proc will be called once immediately, and |
379 | * then again after "GNUNET_NAMESTORE_zone_iterator_next" is invoked. | 379 | * then again after #GNUNET_NAMESTORE_zone_iterator_next is invoked. |
380 | * | 380 | * |
381 | * @param h handle to the namestore | 381 | * @param h handle to the namestore |
382 | * @param zone zone to access | 382 | * @param zone zone to access |
383 | * @param must_have_flags flags that must be set for the record to be returned | ||
384 | * @param must_not_have_flags flags that must NOT be set for the record to be returned | ||
385 | * @param proc function to call on each name from the zone; it | 383 | * @param proc function to call on each name from the zone; it |
386 | * will be called repeatedly with a value (if available) | 384 | * will be called repeatedly with a value (if available) |
387 | * and always once at the end with a name of NULL. | 385 | * and always once at the end with a name of NULL. |
@@ -408,7 +406,7 @@ GNUNET_NAMESTORE_zone_iterator_next (struct GNUNET_NAMESTORE_ZoneIterator *it); | |||
408 | /** | 406 | /** |
409 | * Stops iteration and releases the namestore handle for further calls. Must | 407 | * Stops iteration and releases the namestore handle for further calls. Must |
410 | * be called on any iteration that has not yet completed prior to calling | 408 | * be called on any iteration that has not yet completed prior to calling |
411 | * 'GNUNET_NAMESTORE_disconnect'. | 409 | * #GNUNET_NAMESTORE_disconnect. |
412 | * | 410 | * |
413 | * @param it the iterator | 411 | * @param it the iterator |
414 | */ | 412 | */ |
@@ -441,11 +439,6 @@ typedef void (*GNUNET_NAMESTORE_RecordsSynchronizedCallback)(void *cls); | |||
441 | * the connection is re-established, the process begins from the start (all | 439 | * the connection is re-established, the process begins from the start (all |
442 | * existing records, sync, then updates). | 440 | * existing records, sync, then updates). |
443 | * | 441 | * |
444 | * Note that the 'signature' in the 'monitor' callback will always be | ||
445 | * NULL (as signatures are usually not valuable to monitoring clients, | ||
446 | * the service does not bother to generate a valid signature for | ||
447 | * monitoring). | ||
448 | * | ||
449 | * @param cfg configuration to use to connect to namestore | 442 | * @param cfg configuration to use to connect to namestore |
450 | * @param zone zone to monitor | 443 | * @param zone zone to monitor |
451 | * @param monitor function to call on zone changes | 444 | * @param monitor function to call on zone changes |
@@ -477,7 +470,7 @@ GNUNET_NAMESTORE_zone_monitor_stop (struct GNUNET_NAMESTORE_ZoneMonitor *zm); | |||
477 | * records. | 470 | * records. |
478 | * | 471 | * |
479 | * @param rd_count number of records in the rd array | 472 | * @param rd_count number of records in the rd array |
480 | * @param rd array of GNUNET_NAMESTORE_RecordData with rd_count elements | 473 | * @param rd array of #GNUNET_NAMESTORE_RecordData with @a rd_count elements |
481 | * | 474 | * |
482 | * @return the required size to serialize | 475 | * @return the required size to serialize |
483 | * | 476 | * |
@@ -491,10 +484,9 @@ GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, | |||
491 | * Serialize the given records to the given destination buffer. | 484 | * Serialize the given records to the given destination buffer. |
492 | * | 485 | * |
493 | * @param rd_count number of records in the rd array | 486 | * @param rd_count number of records in the rd array |
494 | * @param rd array of GNUNET_NAMESTORE_RecordData with rd_count elements | 487 | * @param rd array of #GNUNET_NAMESTORE_RecordData with @a rd_count elements |
495 | * @param dest_size size of the destination array | 488 | * @param dest_size size of the destination array |
496 | * @param dest where to write the result | 489 | * @param dest where to write the result |
497 | * | ||
498 | * @return the size of serialized records, -1 if records do not fit | 490 | * @return the size of serialized records, -1 if records do not fit |
499 | */ | 491 | */ |
500 | ssize_t | 492 | ssize_t |
@@ -576,8 +568,8 @@ GNUNET_NAMESTORE_number_to_typename (uint32_t type); | |||
576 | * Test if a given record is expired. | 568 | * Test if a given record is expired. |
577 | * | 569 | * |
578 | * @param rd record to test | 570 | * @param rd record to test |
579 | * @return GNUNET_YES if the record is expired, | 571 | * @return #GNUNET_YES if the record is expired, |
580 | * GNUNET_NO if not | 572 | * #GNUNET_NO if not |
581 | */ | 573 | */ |
582 | int | 574 | int |
583 | GNUNET_NAMESTORE_is_expired (const struct GNUNET_NAMESTORE_RecordData *rd); | 575 | GNUNET_NAMESTORE_is_expired (const struct GNUNET_NAMESTORE_RecordData *rd); |
@@ -598,18 +590,18 @@ GNUNET_NAMESTORE_normalize_string (const char *src); | |||
598 | * NOT reentrant! | 590 | * NOT reentrant! |
599 | * | 591 | * |
600 | * @param z public key of a zone | 592 | * @param z public key of a zone |
601 | * @return string form; will be overwritten by next call to GNUNET_h2s. | 593 | * @return string form; will be overwritten by next call to #GNUNET_NAMESTORE_z2s. |
602 | */ | 594 | */ |
603 | const char * | 595 | const char * |
604 | GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicKey *z); | 596 | GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicKey *z); |
605 | 597 | ||
606 | 598 | ||
607 | /** | 599 | /** |
608 | * Calculate the DHT query for a given 'label' in a given zone. | 600 | * Calculate the DHT query for a given @a label in a given @a zone. |
609 | * | 601 | * |
610 | * @param zone private key of the zone | 602 | * @param zone private key of the zone |
611 | * @param label label of the record | 603 | * @param label label of the record |
612 | * @return query hash to use for the query | 604 | * @param query hash to use for the query |
613 | */ | 605 | */ |
614 | void | 606 | void |
615 | GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 607 | GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKey *zone, |
@@ -618,11 +610,11 @@ GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKe | |||
618 | 610 | ||
619 | 611 | ||
620 | /** | 612 | /** |
621 | * Calculate the DHT query for a given 'label' in a given zone. | 613 | * Calculate the DHT query for a given @a label in a given @a zone. |
622 | * | 614 | * |
623 | * @param pub public key of the zone | 615 | * @param pub public key of the zone |
624 | * @param label label of the record | 616 | * @param label label of the record |
625 | * @return query hash to use for the query | 617 | * @param query hash to use for the query |
626 | */ | 618 | */ |
627 | void | 619 | void |
628 | GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicKey *pub, | 620 | GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicKey *pub, |
@@ -638,7 +630,6 @@ GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicKey | |||
638 | * @param label the name for the records | 630 | * @param label the name for the records |
639 | * @param rd record data | 631 | * @param rd record data |
640 | * @param rd_count number of records | 632 | * @param rd_count number of records |
641 | * @param signature where to store the signature | ||
642 | */ | 633 | */ |
643 | struct GNUNET_NAMESTORE_Block * | 634 | struct GNUNET_NAMESTORE_Block * |
644 | GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EccPrivateKey *key, | 635 | GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EccPrivateKey *key, |
@@ -653,7 +644,7 @@ GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EccPrivateKey *key, | |||
653 | * to validate signatures received from the network. | 644 | * to validate signatures received from the network. |
654 | * | 645 | * |
655 | * @param block block to verify | 646 | * @param block block to verify |
656 | * @return GNUNET_OK if the signature is valid | 647 | * @return #GNUNET_OK if the signature is valid |
657 | */ | 648 | */ |
658 | int | 649 | int |
659 | GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block); | 650 | GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block); |
@@ -667,7 +658,7 @@ GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block); | |||
667 | * @param label the name for the records | 658 | * @param label the name for the records |
668 | * @param proc function to call with the result | 659 | * @param proc function to call with the result |
669 | * @param proc_cls closure for proc | 660 | * @param proc_cls closure for proc |
670 | * @param GNUNET_OK on success, GNUNET_SYSERR if the block was | 661 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if the block was |
671 | * not well-formed | 662 | * not well-formed |
672 | */ | 663 | */ |
673 | int | 664 | int |
@@ -681,10 +672,9 @@ GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block, | |||
681 | /** | 672 | /** |
682 | * Compares if two records are equal | 673 | * Compares if two records are equal |
683 | * | 674 | * |
684 | * @param a Record a | 675 | * @param a a record |
685 | * @param b Record b | 676 | * @param b another record |
686 | * | 677 | * @return #GNUNET_YES if the records are equal, or #GNUNET_NO if not. |
687 | * @return GNUNET_YES or GNUNET_NO | ||
688 | */ | 678 | */ |
689 | int | 679 | int |
690 | GNUNET_NAMESTORE_records_cmp (const struct GNUNET_NAMESTORE_RecordData *a, | 680 | GNUNET_NAMESTORE_records_cmp (const struct GNUNET_NAMESTORE_RecordData *a, |
diff --git a/src/namestore/namestore_api_common.c b/src/namestore/namestore_api_common.c index 0ee424504..5a27f14a1 100644 --- a/src/namestore/namestore_api_common.c +++ b/src/namestore/namestore_api_common.c | |||
@@ -95,7 +95,7 @@ GNUNET_NAMESTORE_normalize_string (const char *src) | |||
95 | * NOT reentrant! | 95 | * NOT reentrant! |
96 | * | 96 | * |
97 | * @param z the zone key | 97 | * @param z the zone key |
98 | * @return string form; will be overwritten by next call to GNUNET_NAMESTORE_z2s | 98 | * @return string form; will be overwritten by next call to #GNUNET_NAMESTORE_z2s |
99 | */ | 99 | */ |
100 | const char * | 100 | const char * |
101 | GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicKey *z) | 101 | GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicKey *z) |
@@ -121,10 +121,8 @@ GNUNET_NAMESTORE_z2s (const struct GNUNET_CRYPTO_EccPublicKey *z) | |||
121 | * records. | 121 | * records. |
122 | * | 122 | * |
123 | * @param rd_count number of records in the rd array | 123 | * @param rd_count number of records in the rd array |
124 | * @param rd array of GNUNET_NAMESTORE_RecordData with rd_count elements | 124 | * @param rd array of #GNUNET_NAMESTORE_RecordData with @a rd_count elements |
125 | * | ||
126 | * @return the required size to serialize | 125 | * @return the required size to serialize |
127 | * | ||
128 | */ | 126 | */ |
129 | size_t | 127 | size_t |
130 | GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, | 128 | GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, |
@@ -147,10 +145,9 @@ GNUNET_NAMESTORE_records_get_size (unsigned int rd_count, | |||
147 | * Serialize the given records to the given destination buffer. | 145 | * Serialize the given records to the given destination buffer. |
148 | * | 146 | * |
149 | * @param rd_count number of records in the rd array | 147 | * @param rd_count number of records in the rd array |
150 | * @param rd array of GNUNET_NAMESTORE_RecordData with rd_count elements | 148 | * @param rd array of #GNUNET_NAMESTORE_RecordData with @a rd_count elements |
151 | * @param dest_size size of the destination array | 149 | * @param dest_size size of the destination array |
152 | * @param dest where to write the result | 150 | * @param dest where to write the result |
153 | * | ||
154 | * @return the size of serialized records, -1 if records do not fit | 151 | * @return the size of serialized records, -1 if records do not fit |
155 | */ | 152 | */ |
156 | ssize_t | 153 | ssize_t |
@@ -190,7 +187,7 @@ GNUNET_NAMESTORE_records_serialize (unsigned int rd_count, | |||
190 | * | 187 | * |
191 | * @param a record | 188 | * @param a record |
192 | * @param b record | 189 | * @param b record |
193 | * @return GNUNET_YES if the records are equal or GNUNET_NO if they are not | 190 | * @return #GNUNET_YES if the records are equal or #GNUNET_NO if they are not |
194 | */ | 191 | */ |
195 | int | 192 | int |
196 | GNUNET_NAMESTORE_records_cmp (const struct GNUNET_NAMESTORE_RecordData *a, | 193 | GNUNET_NAMESTORE_records_cmp (const struct GNUNET_NAMESTORE_RecordData *a, |
@@ -245,8 +242,7 @@ GNUNET_NAMESTORE_records_cmp (const struct GNUNET_NAMESTORE_RecordData *a, | |||
245 | * @param src the serialized record data | 242 | * @param src the serialized record data |
246 | * @param rd_count number of records in the rd array | 243 | * @param rd_count number of records in the rd array |
247 | * @param dest where to put the data | 244 | * @param dest where to put the data |
248 | * | 245 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
249 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | ||
250 | */ | 246 | */ |
251 | int | 247 | int |
252 | GNUNET_NAMESTORE_records_deserialize (size_t len, | 248 | GNUNET_NAMESTORE_records_deserialize (size_t len, |
@@ -284,7 +280,7 @@ GNUNET_NAMESTORE_records_deserialize (size_t len, | |||
284 | * expiration time is the expiration time of the block with smallest | 280 | * expiration time is the expiration time of the block with smallest |
285 | * expiration time. | 281 | * expiration time. |
286 | * | 282 | * |
287 | * @param rd_count number of records given in 'rd' | 283 | * @param rd_count number of records given in @a rd |
288 | * @param rd array of records | 284 | * @param rd array of records |
289 | * @return absolute expiration time | 285 | * @return absolute expiration time |
290 | */ | 286 | */ |
@@ -325,7 +321,6 @@ GNUNET_NAMESTORE_record_get_expiration_time (unsigned int rd_count, | |||
325 | * @param label the name for the records | 321 | * @param label the name for the records |
326 | * @param rd record data | 322 | * @param rd record data |
327 | * @param rd_count number of records | 323 | * @param rd_count number of records |
328 | * @param signature where to store the signature | ||
329 | */ | 324 | */ |
330 | struct GNUNET_NAMESTORE_Block * | 325 | struct GNUNET_NAMESTORE_Block * |
331 | GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EccPrivateKey *key, | 326 | GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EccPrivateKey *key, |
@@ -344,7 +339,7 @@ GNUNET_NAMESTORE_block_create (const struct GNUNET_CRYPTO_EccPrivateKey *key, | |||
344 | * to validate signatures received from the network. | 339 | * to validate signatures received from the network. |
345 | * | 340 | * |
346 | * @param block block to verify | 341 | * @param block block to verify |
347 | * @return GNUNET_OK if the signature is valid | 342 | * @return #GNUNET_OK if the signature is valid |
348 | */ | 343 | */ |
349 | int | 344 | int |
350 | GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block) | 345 | GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block) |
@@ -362,7 +357,7 @@ GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block) | |||
362 | * @param label the name for the records | 357 | * @param label the name for the records |
363 | * @param proc function to call with the result | 358 | * @param proc function to call with the result |
364 | * @param proc_cls closure for proc | 359 | * @param proc_cls closure for proc |
365 | * @param GNUNET_OK on success, GNUNET_SYSERR if the block was | 360 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if the block was |
366 | * not well-formed | 361 | * not well-formed |
367 | */ | 362 | */ |
368 | int | 363 | int |
@@ -898,8 +893,8 @@ GNUNET_NAMESTORE_number_to_typename (uint32_t type) | |||
898 | /** | 893 | /** |
899 | * Test if a given record is expired. | 894 | * Test if a given record is expired. |
900 | * | 895 | * |
901 | * @return GNUNET_YES if the record is expired, | 896 | * @return #GNUNET_YES if the record is expired, |
902 | * GNUNET_NO if not | 897 | * #GNUNET_NO if not |
903 | */ | 898 | */ |
904 | int | 899 | int |
905 | GNUNET_NAMESTORE_is_expired (const struct GNUNET_NAMESTORE_RecordData *rd) | 900 | GNUNET_NAMESTORE_is_expired (const struct GNUNET_NAMESTORE_RecordData *rd) |
@@ -914,11 +909,11 @@ GNUNET_NAMESTORE_is_expired (const struct GNUNET_NAMESTORE_RecordData *rd) | |||
914 | 909 | ||
915 | 910 | ||
916 | /** | 911 | /** |
917 | * Calculate the DHT query for a given 'label' in a given zone. | 912 | * Calculate the DHT query for a given @a label in a given @a zone. |
918 | * | 913 | * |
919 | * @param zone private key of the zone | 914 | * @param zone private key of the zone |
920 | * @param label label of the record | 915 | * @param label label of the record |
921 | * @return query hash to use for the query | 916 | * @param query hash to use for the query |
922 | */ | 917 | */ |
923 | void | 918 | void |
924 | GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKey *zone, | 919 | GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKey *zone, |
@@ -933,11 +928,11 @@ GNUNET_NAMESTORE_query_from_private_key (const struct GNUNET_CRYPTO_EccPrivateKe | |||
933 | 928 | ||
934 | 929 | ||
935 | /** | 930 | /** |
936 | * Calculate the DHT query for a given 'label' in a given zone. | 931 | * Calculate the DHT query for a given @a label in a given @a zone. |
937 | * | 932 | * |
938 | * @param pub public key of the zone | 933 | * @param pub public key of the zone |
939 | * @param label label of the record | 934 | * @param label label of the record |
940 | * @return query hash to use for the query | 935 | * @param query hash to use for the query |
941 | */ | 936 | */ |
942 | void | 937 | void |
943 | GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicKey *pub, | 938 | GNUNET_NAMESTORE_query_from_public_key (const struct GNUNET_CRYPTO_EccPublicKey *pub, |
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 17e39360c..56477625f 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -879,7 +879,7 @@ server_disconnect (struct Session *s) | |||
879 | 879 | ||
880 | 880 | ||
881 | /** | 881 | /** |
882 | * Tell MHD that the connection should timeout after #to seconds. | 882 | * Tell MHD that the connection should timeout after @a to seconds. |
883 | * | 883 | * |
884 | * @param plugin our plugin | 884 | * @param plugin our plugin |
885 | * @param s session for which the timeout changes | 885 | * @param s session for which the timeout changes |