aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-04 21:51:00 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-04 21:51:00 +0000
commit08a8611fba57d6374890a2e6aaa247faae093850 (patch)
tree286ae7998c55d62aca5d0dc780870884411832e1 /src/include/gnunet_namestore_service.h
parentdcd22c21e15048d672d4a0d423da24df2e51fd7d (diff)
downloadgnunet-08a8611fba57d6374890a2e6aaa247faae093850.tar.gz
gnunet-08a8611fba57d6374890a2e6aaa247faae093850.zip
-zone to name --- API mentioned in #2194
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r--src/include/gnunet_namestore_service.h21
1 files changed, 21 insertions, 0 deletions
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
@@ -307,6 +307,27 @@ GNUNET_NAMESTORE_lookup_record (struct GNUNET_NAMESTORE_Handle *h,
307 307
308 308
309/** 309/**
310 * Look for an existing PKEY delegation record for a given public key.
311 * Returns at most one result to the processor.
312 *
313 * @param h handle to the namestore
314 * @param zone hash of public key of the zone to look up in, never NULL
315 * @param value_zone hash of the public key of the target zone (value), never NULL
316 * @param proc function to call on the matching records, or with
317 * NULL (rd_count == 0) if there are no matching records
318 * @param proc_cls closure for proc
319 * @return a handle that can be used to
320 * cancel
321 */
322struct GNUNET_NAMESTORE_QueueEntry *
323GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h,
324 const GNUNET_HashCode *zone,
325 const GNUNET_HashCode *value_zone,
326 GNUNET_NAMESTORE_RecordProcessor proc, void *proc_cls);
327
328
329
330/**
310 * Starts a new zone iteration (used to periodically PUT all of our 331 * Starts a new zone iteration (used to periodically PUT all of our
311 * records into our DHT). This MUST lock the GNUNET_NAMESTORE_Handle 332 * records into our DHT). This MUST lock the GNUNET_NAMESTORE_Handle
312 * for any other calls than GNUNET_NAMESTORE_zone_iterator_next and 333 * for any other calls than GNUNET_NAMESTORE_zone_iterator_next and