diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-25 16:18:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-25 16:18:31 +0200 |
commit | 4dc79497d7f745996068e62e973e34d220580323 (patch) | |
tree | e6d429d3cf2240ec3459f1d4533201dc40b27015 /src/namestore/namestore.h | |
parent | bdbb7c684f2c9711989d2543ecc08a95be23e6c4 (diff) | |
download | gnunet-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/namestore.h')
-rw-r--r-- | src/namestore/namestore.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h index ec7f28704..b398af8a9 100644 --- a/src/namestore/namestore.h +++ b/src/namestore/namestore.h | |||
@@ -345,6 +345,14 @@ struct ZoneIterationNextMessage | |||
345 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT | 345 | * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT |
346 | */ | 346 | */ |
347 | struct GNUNET_NAMESTORE_Header gns_header; | 347 | struct GNUNET_NAMESTORE_Header gns_header; |
348 | |||
349 | /** | ||
350 | * Number of records to return to the iterator in one shot | ||
351 | * (before #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT | ||
352 | * should be send again). In NBO. | ||
353 | */ | ||
354 | uint64_t limit; | ||
355 | |||
348 | }; | 356 | }; |
349 | 357 | ||
350 | 358 | ||