diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-13 23:18:43 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-13 23:18:43 +0100 |
commit | 443454a6212e5596f7caaadf3b666fa4857edb64 (patch) | |
tree | aa018ceda1b44b958f6057e3196a97b81cd41cfe /src/include | |
parent | 7285ae216aeb5dad89055085f2d7710c4ed5934e (diff) | |
download | gnunet-443454a6212e5596f7caaadf3b666fa4857edb64.tar.gz gnunet-443454a6212e5596f7caaadf3b666fa4857edb64.zip |
clarifying namestore api (#5458), fixing code duplication and a memory leak while at it
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index 46a7da792..3b603b4c0 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -47,7 +47,8 @@ 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 serial unique serial number of the record, MUST NOT BE ZERO, |
51 | * and must be monotonically increasing while iterating | ||
51 | * @param zone_key private key of the zone | 52 | * @param zone_key private key of the zone |
52 | * @param label name that is being mapped (at most 255 characters long) | 53 | * @param label name that is being mapped (at most 255 characters long) |
53 | * @param rd_count number of entries in @a rd array | 54 | * @param rd_count number of entries in @a rd array |
@@ -115,7 +116,9 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
115 | * | 116 | * |
116 | * @param cls closure (internal context for the plugin) | 117 | * @param cls closure (internal context for the plugin) |
117 | * @param zone private key of the zone, NULL for all zones | 118 | * @param zone private key of the zone, NULL for all zones |
118 | * @param serial serial (to exclude) in the list of matching records | 119 | * @param serial serial (to exclude) in the list of matching records; |
120 | * 0 means to exclude nothing; results must be returned using | ||
121 | * the minimum possible sequence number first (ordered by serial) | ||
119 | * @param limit maximum number of results to return to @a iter | 122 | * @param limit maximum number of results to return to @a iter |
120 | * @param iter function to call with the result | 123 | * @param iter function to call with the result |
121 | * @param iter_cls closure for @a iter | 124 | * @param iter_cls closure for @a iter |