From: Christian Grothoff Date: Sun, 4 Mar 2012 21:51:00 +0000 (+0000) Subject: -zone to name --- API mentioned in #2194 X-Git-Tag: initial-import-from-subversion-38251~14448 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08a8611fba57d6374890a2e6aaa247faae093850;p=oweals%2Fgnunet.git -zone to name --- API mentioned in #2194 --- diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 4b97a9eb2..0278c4a49 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h @@ -306,6 +306,27 @@ GNUNET_NAMESTORE_lookup_record (struct GNUNET_NAMESTORE_Handle *h, GNUNET_NAMESTORE_RecordProcessor proc, void *proc_cls); +/** + * Look for an existing PKEY delegation record for a given public key. + * Returns at most one result to the processor. + * + * @param h handle to the namestore + * @param zone hash of public key of the zone to look up in, never NULL + * @param value_zone hash of the public key of the target zone (value), never NULL + * @param proc function to call on the matching records, or with + * NULL (rd_count == 0) if there are no matching records + * @param proc_cls closure for proc + * @return a handle that can be used to + * cancel + */ +struct GNUNET_NAMESTORE_QueueEntry * +GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, + const GNUNET_HashCode *zone, + const GNUNET_HashCode *value_zone, + GNUNET_NAMESTORE_RecordProcessor proc, void *proc_cls); + + + /** * Starts a new zone iteration (used to periodically PUT all of our * records into our DHT). This MUST lock the GNUNET_NAMESTORE_Handle