diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-17 14:42:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-17 14:42:46 +0200 |
commit | 7eb7bd8666aeb2e855cd22b1ea7f44b87bb60400 (patch) | |
tree | 4847832d236a874f0a8b711a038c4c2950219848 /src/include | |
parent | 64a7c356b391016be0aa01bc25c237f59fc03a34 (diff) | |
download | gnunet-7eb7bd8666aeb2e855cd22b1ea7f44b87bb60400.tar.gz gnunet-7eb7bd8666aeb2e855cd22b1ea7f44b87bb60400.zip |
use namestore API for zone import instead of using plugin directly
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 29 | ||||
-rw-r--r-- | src/include/gnunet_namestore_service.h | 5 |
2 files changed, 2 insertions, 32 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index d1c68cd23..3ebf48987 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h | |||
@@ -145,35 +145,6 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
145 | void *iter_cls); | 145 | void *iter_cls); |
146 | 146 | ||
147 | 147 | ||
148 | /** | ||
149 | * Start a transaction. | ||
150 | * | ||
151 | * @param cls closure | ||
152 | * @return #GNUNET_OK on success, #GNUNET_NO if transactions are not supported, | ||
153 | * #GNUNET_SYSERR on internal errors | ||
154 | */ | ||
155 | int | ||
156 | (*begin_transaction) (void *cls); | ||
157 | |||
158 | |||
159 | /** | ||
160 | * Try to commit a transaction. | ||
161 | * | ||
162 | * @param cls closure | ||
163 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure | ||
164 | */ | ||
165 | int | ||
166 | (*commit_transaction) (void *cls); | ||
167 | |||
168 | |||
169 | /** | ||
170 | * Rollback a transaction. | ||
171 | * | ||
172 | * @param cls closure | ||
173 | */ | ||
174 | void | ||
175 | (*rollback_transaction) (void *cls); | ||
176 | |||
177 | }; | 148 | }; |
178 | 149 | ||
179 | 150 | ||
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 6d3c07f1d..f8c2eaf3b 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.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 |
@@ -128,7 +128,6 @@ GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | |||
128 | void *cont_cls); | 128 | void *cont_cls); |
129 | 129 | ||
130 | 130 | ||
131 | |||
132 | /** | 131 | /** |
133 | * Process a record that was stored in the namestore. | 132 | * Process a record that was stored in the namestore. |
134 | * | 133 | * |
@@ -153,7 +152,7 @@ typedef void | |||
153 | * @param pkey private key of the zone | 152 | * @param pkey private key of the zone |
154 | * @param nick the nick name to set | 153 | * @param nick the nick name to set |
155 | * @param cont continuation to call when done | 154 | * @param cont continuation to call when done |
156 | * @param cont_cls closure for 'cont' | 155 | * @param cont_cls closure for @a cont |
157 | * @return handle to abort the request | 156 | * @return handle to abort the request |
158 | */ | 157 | */ |
159 | struct GNUNET_NAMESTORE_QueueEntry * | 158 | struct GNUNET_NAMESTORE_QueueEntry * |