aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_plugin.h
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/include/gnunet_namestore_plugin.h
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/include/gnunet_namestore_plugin.h')
-rw-r--r--src/include/gnunet_namestore_plugin.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h
index 3ebf48987..802d7bac5 100644
--- a/src/include/gnunet_namestore_plugin.h
+++ b/src/include/gnunet_namestore_plugin.h
@@ -109,19 +109,21 @@ struct GNUNET_NAMESTORE_PluginFunctions
109 109
110 /** 110 /**
111 * Iterate over the results for a particular zone in the 111 * Iterate over the results for a particular zone in the
112 * datastore. Will return at most one result to the iterator. 112 * datastore. Will return at most @a limit results to the iterator.
113 * 113 *
114 * @param cls closure (internal context for the plugin) 114 * @param cls closure (internal context for the plugin)
115 * @param zone private key of the zone, NULL for all zones 115 * @param zone private key of the zone, NULL for all zones
116 * @param offset offset in the list of all matching records 116 * @param offset offset in the list of all matching records
117 * @param limit maximum number of results to return to @a iter
117 * @param iter function to call with the result 118 * @param iter function to call with the result
118 * @param iter_cls closure for @a iter 119 * @param iter_cls closure for @a iter
119 * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error 120 * @return #GNUNET_OK on success, #GNUNET_NO if there were no more results, #GNUNET_SYSERR on error
120 */ 121 */
121 int 122 int
122 (*iterate_records) (void *cls, 123 (*iterate_records) (void *cls,
123 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, 124 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
124 uint64_t offset, 125 uint64_t offset,
126 uint64_t limit,
125 GNUNET_NAMESTORE_RecordIterator iter, 127 GNUNET_NAMESTORE_RecordIterator iter,
126 void *iter_cls); 128 void *iter_cls);
127 129