aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gnsrecord_lib.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 17:43:29 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-15 17:43:29 +0200
commitffd4382a73e2fa1d99812df14ed1025fadeb4017 (patch)
tree25dd9de304d385a172569baba5be482bb84b6371 /src/include/gnunet_gnsrecord_lib.h
parente57ffbb53604b5a9606301589c0644a2b1383467 (diff)
downloadgnunet-ffd4382a73e2fa1d99812df14ed1025fadeb4017.tar.gz
gnunet-ffd4382a73e2fa1d99812df14ed1025fadeb4017.zip
-documentation on new api
Diffstat (limited to 'src/include/gnunet_gnsrecord_lib.h')
-rw-r--r--src/include/gnunet_gnsrecord_lib.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h
index 559208689..22e7c0e25 100644
--- a/src/include/gnunet_gnsrecord_lib.h
+++ b/src/include/gnunet_gnsrecord_lib.h
@@ -659,19 +659,35 @@ size_t
659GNUNET_GNSRECORD_block_get_size (const struct GNUNET_GNSRECORD_Block *block); 659GNUNET_GNSRECORD_block_get_size (const struct GNUNET_GNSRECORD_Block *block);
660 660
661/** 661/**
662 * Returns the expiration of a block 662 * Returns the expiration of a block.
663 *
664 * @param block the block.
665 * @return the block expiration.
663 */ 666 */
664struct GNUNET_TIME_Absolute 667struct GNUNET_TIME_Absolute
665GNUNET_GNSRECORD_block_get_expiration (const struct GNUNET_GNSRECORD_Block *block); 668GNUNET_GNSRECORD_block_get_expiration (const struct GNUNET_GNSRECORD_Block *block);
666 669
667 670
668/** 671/**
669 * Builds the query from a block 672 * Builds the query hash from a block.
673 *
674 * @param block the block.
675 * @param query where to write the query hash.
676 * @return GNUNET_SYSERR on error.
670 */ 677 */
671enum GNUNET_GenericReturnValue 678enum GNUNET_GenericReturnValue
672GNUNET_GNSRECORD_query_from_block (const struct GNUNET_GNSRECORD_Block *block, 679GNUNET_GNSRECORD_query_from_block (const struct GNUNET_GNSRECORD_Block *block,
673 struct GNUNET_HashCode *query); 680 struct GNUNET_HashCode *query);
674 681
682
683/**
684 * Build a #GNUNET_GNSRECORD_PublicKey from a
685 * zone delegation resource record set.
686 *
687 * @param the resource record set. MUST be a delegation record.
688 * @param key where to write the identtiy key.
689 * @return GNUNET_SYSERR on error or if the zone is not a delegation zone.
690 */
675enum GNUNET_GenericReturnValue 691enum GNUNET_GenericReturnValue
676GNUNET_GNSRECORD_record_to_identity_key (const struct GNUNET_GNSRECORD_Data *rd, 692GNUNET_GNSRECORD_record_to_identity_key (const struct GNUNET_GNSRECORD_Data *rd,
677 struct GNUNET_IDENTITY_PublicKey *key); 693 struct GNUNET_IDENTITY_PublicKey *key);