aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r--src/include/gnunet_namestore_service.h39
1 files changed, 28 insertions, 11 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h
index 986e957ec..0fbbb0084 100644
--- a/src/include/gnunet_namestore_service.h
+++ b/src/include/gnunet_namestore_service.h
@@ -367,6 +367,34 @@ GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h,
367 367
368 368
369/** 369/**
370 * Process a records that were decrypted from a block.
371 *
372 * @param cls closure
373 * @param rd_count number of entries in @a rd array
374 * @param rd array of records with data to store
375 */
376typedef void (*GNUNET_NAMESTORE_RecordCallback) (void *cls,
377 unsigned int rd_count,
378 const struct GNUNET_NAMESTORE_RecordData *rd);
379
380
381/**
382 * Perform a lookup and decrypt the resulting block.
383 *
384 * @param h namestore to perform lookup in
385 * @param value_zone zone to look up record in
386 * @param label label to look for
387 * @param proc function to call with the result
388 * @param proc_cls closure for @a proc
389 */
390struct GNUNET_NAMESTORE_QueueEntry *
391GNUNET_NAMESTORE_lookup (struct GNUNET_NAMESTORE_Handle *h,
392 const struct GNUNET_CRYPTO_EccPublicKey *value_zone,
393 const char *label,
394 GNUNET_NAMESTORE_RecordMonitor proc, void *proc_cls);
395
396
397/**
370 * Cancel a namestore operation. The final callback from the 398 * Cancel a namestore operation. The final callback from the
371 * operation must not have been done yet. Must be called on any 399 * operation must not have been done yet. Must be called on any
372 * namestore operation that has not yet completed prior to calling 400 * namestore operation that has not yet completed prior to calling
@@ -656,17 +684,6 @@ GNUNET_NAMESTORE_block_verify (const struct GNUNET_NAMESTORE_Block *block);
656 684
657 685
658/** 686/**
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/**
670 * Decrypt block. 687 * Decrypt block.
671 * 688 *
672 * @param block block to decrypt 689 * @param block block to decrypt