aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-25 16:18:31 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-25 16:18:31 +0200
commit4dc79497d7f745996068e62e973e34d220580323 (patch)
treee6d429d3cf2240ec3459f1d4533201dc40b27015 /src/namestore/gnunet-namestore.c
parentbdbb7c684f2c9711989d2543ecc08a95be23e6c4 (diff)
downloadgnunet-4dc79497d7f745996068e62e973e34d220580323.tar.gz
gnunet-4dc79497d7f745996068e62e973e34d220580323.zip
extend namestore API to enable faster iterations by returning more than one result at a time
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r--src/namestore/gnunet-namestore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index 660737595..7b8312b46 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -398,7 +398,8 @@ display_record (void *cls,
398 if ( (NULL != name) && 398 if ( (NULL != name) &&
399 (0 != strcmp (name, rname)) ) 399 (0 != strcmp (name, rname)) )
400 { 400 {
401 GNUNET_NAMESTORE_zone_iterator_next (list_it); 401 GNUNET_NAMESTORE_zone_iterator_next (list_it,
402 1);
402 return; 403 return;
403 } 404 }
404 FPRINTF (stdout, 405 FPRINTF (stdout,
@@ -441,7 +442,8 @@ display_record (void *cls,
441 GNUNET_free (s); 442 GNUNET_free (s);
442 } 443 }
443 FPRINTF (stdout, "%s", "\n"); 444 FPRINTF (stdout, "%s", "\n");
444 GNUNET_NAMESTORE_zone_iterator_next (list_it); 445 GNUNET_NAMESTORE_zone_iterator_next (list_it,
446 1);
445} 447}
446 448
447 449