aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-05 11:23:06 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-05 11:23:06 +0000
commit3066c800a6d6b6e16d6c174519025608b6f7f250 (patch)
treef6b216578bf89c7474b40c7566c267dabcdc2f0d /src/include/gnunet_namestore_service.h
parente097895ea54b316c3ede8640f6dd49f864313a2d (diff)
downloadgnunet-3066c800a6d6b6e16d6c174519025608b6f7f250.tar.gz
gnunet-3066c800a6d6b6e16d6c174519025608b6f7f250.zip
-allow passing NULL for zone to iterate over all of our zones
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r--src/include/gnunet_namestore_service.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h
index 759b53581..0f6730d62 100644
--- a/src/include/gnunet_namestore_service.h
+++ b/src/include/gnunet_namestore_service.h
@@ -393,15 +393,18 @@ GNUNET_NAMESTORE_cancel (struct GNUNET_NAMESTORE_QueueEntry *qe);
393 393
394/** 394/**
395 * Starts a new zone iteration (used to periodically PUT all of our 395 * Starts a new zone iteration (used to periodically PUT all of our
396 * records into our DHT). @a proc will be called once immediately, and 396 * records into our DHT). This MUST lock the struct GNUNET_NAMESTORE_Handle
397 * then again after #GNUNET_NAMESTORE_zone_iterator_next is invoked. 397 * for any other calls than #GNUNET_NAMESTORE_zone_iterator_next and
398 * #GNUNET_NAMESTORE_zone_iteration_stop. @a proc will be called once
399 * immediately, and then again after
400 * #GNUNET_NAMESTORE_zone_iterator_next is invoked.
398 * 401 *
399 * @param h handle to the namestore 402 * @param h handle to the namestore
400 * @param zone zone to access 403 * @param zone zone to access, NULL for all zones
401 * @param proc function to call on each name from the zone; it 404 * @param proc function to call on each name from the zone; it
402 * will be called repeatedly with a value (if available) 405 * will be called repeatedly with a value (if available)
403 * and always once at the end with a name of NULL. 406 * and always once at the end with a name of NULL.
404 * @param proc_cls closure for proc 407 * @param proc_cls closure for @a proc
405 * @return an iterator handle to use for iteration 408 * @return an iterator handle to use for iteration
406 */ 409 */
407struct GNUNET_NAMESTORE_ZoneIterator * 410struct GNUNET_NAMESTORE_ZoneIterator *