From: Christian Grothoff Date: Sun, 4 Mar 2012 21:26:20 +0000 (+0000) Subject: -zone to name --- API mentioned in #2194 X-Git-Tag: initial-import-from-subversion-38251~14449 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dcd22c21e15048d672d4a0d423da24df2e51fd7d;p=oweals%2Fgnunet.git -zone to name --- API mentioned in #2194 --- diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index bf43805e4..9a1d54774 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h @@ -128,6 +128,23 @@ struct GNUNET_NAMESTORE_PluginFunctions GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); + /** + * Look for an existing PKEY delegation record for a given public key. + * Returns at most one result to the iterator. + * + * @param cls closure (internal context for the plugin) + * @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 iter function to call with the result + * @param iter_cls closure for iter + * @return GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error + */ + int (*zone_to_name) (void *cls, + const GNUNET_HashCode *zone, + const GNUNET_HashCode *value_zone, + GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); + + /** * Delete an entire zone (all records). Not used in normal operation. *