aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-13 21:07:54 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-13 21:07:54 +0000
commit9b87e5d8f6b762cc8fd4625b7dd369e36722978c (patch)
tree43f5d336224f1513733acea0253e3098520e771d /src/include/gnunet_namestore_service.h
parent4c0d35b75913b66abfd69a4f1d76cd0000d1a9ec (diff)
downloadgnunet-9b87e5d8f6b762cc8fd4625b7dd369e36722978c.tar.gz
gnunet-9b87e5d8f6b762cc8fd4625b7dd369e36722978c.zip
-more work on new GNS implementation
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r--src/include/gnunet_namestore_service.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h
index c9eb004e1..986e957ec 100644
--- a/src/include/gnunet_namestore_service.h
+++ b/src/include/gnunet_namestore_service.h
@@ -656,13 +656,24 @@ GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block);
656 656
657 657
658/** 658/**
659 * Process a records that were decrypted from a block.
660 *
661 * @param cls closure
662 * @param rd_count number of entries in @a rd array
663 * @param rd array of records with data to store
664 */
665typedef void (*GNUNET_NAMESTORE_RecordCallback) (void *cls,
666 unsigned int rd_count,
667 const struct GNUNET_NAMESTORE_RecordData *rd);
668
669/**
659 * Decrypt block. 670 * Decrypt block.
660 * 671 *
661 * @param block block to decrypt 672 * @param block block to decrypt
662 * @param zone_key public key of the zone 673 * @param zone_key public key of the zone
663 * @param label the name for the records 674 * @param label the name for the records
664 * @param proc function to call with the result 675 * @param proc function to call with the result
665 * @param proc_cls closure for proc 676 * @param proc_cls closure for @a proc
666 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the block was 677 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the block was
667 * not well-formed 678 * not well-formed
668 */ 679 */
@@ -670,7 +681,7 @@ int
670GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block, 681GNUNET_NAMESTORE_block_decrypt (const struct GNUNET_NAMESTORE_Block *block,
671 const struct GNUNET_CRYPTO_EccPublicKey *zone_key, 682 const struct GNUNET_CRYPTO_EccPublicKey *zone_key,
672 const char *label, 683 const char *label,
673 GNUNET_NAMESTORE_RecordMonitor proc, 684 GNUNET_NAMESTORE_RecordCallback proc,
674 void *proc_cls); 685 void *proc_cls);
675 686
676 687