diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-30 16:22:47 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-30 16:22:47 +0200 |
commit | 4b5c6cceb0284774a161d426b606f40644abfb4c (patch) | |
tree | f2f63b8df7e6bb329ef25eca97e27d4deac55b69 /src/include/gnunet_namestore_plugin.h | |
parent | c66809401efc16f2606db7e2c7b7ca8def8be14e (diff) | |
download | gnunet-4b5c6cceb0284774a161d426b606f40644abfb4c.tar.gz gnunet-4b5c6cceb0284774a161d426b606f40644abfb4c.zip |
eliminate use of OFFSET in namestore DB queries
Diffstat (limited to 'src/include/gnunet_namestore_plugin.h')
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index 802d7bac5..c3ab4d8bf 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet | 2 | This file is part of GNUnet |
3 | Copyright (C) 2012, 2013 GNUnet e.V. | 3 | Copyright (C) 2012, 2013, 2018 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -47,6 +47,7 @@ extern "C" | |||
47 | * Function called for each matching record. | 47 | * Function called for each matching record. |
48 | * | 48 | * |
49 | * @param cls closure | 49 | * @param cls closure |
50 | * @param serial unique serial number of the record | ||
50 | * @param zone_key private key of the zone | 51 | * @param zone_key private key of the zone |
51 | * @param label name that is being mapped (at most 255 characters long) | 52 | * @param label name that is being mapped (at most 255 characters long) |
52 | * @param rd_count number of entries in @a rd array | 53 | * @param rd_count number of entries in @a rd array |
@@ -54,6 +55,7 @@ extern "C" | |||
54 | */ | 55 | */ |
55 | typedef void | 56 | typedef void |
56 | (*GNUNET_NAMESTORE_RecordIterator) (void *cls, | 57 | (*GNUNET_NAMESTORE_RecordIterator) (void *cls, |
58 | uint64_t serial, | ||
57 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, | 59 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, |
58 | const char *label, | 60 | const char *label, |
59 | unsigned int rd_count, | 61 | unsigned int rd_count, |
@@ -113,7 +115,7 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
113 | * | 115 | * |
114 | * @param cls closure (internal context for the plugin) | 116 | * @param cls closure (internal context for the plugin) |
115 | * @param zone private key of the zone, NULL for all zones | 117 | * @param zone private key of the zone, NULL for all zones |
116 | * @param offset offset in the list of all matching records | 118 | * @param serial serial (to exclude) in the list of matching records |
117 | * @param limit maximum number of results to return to @a iter | 119 | * @param limit maximum number of results to return to @a iter |
118 | * @param iter function to call with the result | 120 | * @param iter function to call with the result |
119 | * @param iter_cls closure for @a iter | 121 | * @param iter_cls closure for @a iter |
@@ -122,7 +124,7 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
122 | int | 124 | int |
123 | (*iterate_records) (void *cls, | 125 | (*iterate_records) (void *cls, |
124 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 126 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
125 | uint64_t offset, | 127 | uint64_t serial, |
126 | uint64_t limit, | 128 | uint64_t limit, |
127 | GNUNET_NAMESTORE_RecordIterator iter, | 129 | GNUNET_NAMESTORE_RecordIterator iter, |
128 | void *iter_cls); | 130 | void *iter_cls); |