diff options
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r-- | src/include/gnunet_namestore_service.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 9b6beef28..36221f195 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -11,12 +11,12 @@ | |||
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 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @author Christian Grothoff | 22 | * @author Christian Grothoff |
@@ -74,7 +74,7 @@ struct GNUNET_NAMESTORE_ZoneIterator; | |||
74 | * @return handle to use to access the service | 74 | * @return handle to use to access the service |
75 | */ | 75 | */ |
76 | struct GNUNET_NAMESTORE_Handle * | 76 | struct GNUNET_NAMESTORE_Handle * |
77 | GNUNET_NAMESTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | 77 | GNUNET_NAMESTORE_connect(const struct GNUNET_CONFIGURATION_Handle *cfg); |
78 | 78 | ||
79 | 79 | ||
80 | /** | 80 | /** |
@@ -85,7 +85,7 @@ GNUNET_NAMESTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | |||
85 | * @param h handle to the namestore | 85 | * @param h handle to the namestore |
86 | */ | 86 | */ |
87 | void | 87 | void |
88 | GNUNET_NAMESTORE_disconnect (struct GNUNET_NAMESTORE_Handle *h); | 88 | GNUNET_NAMESTORE_disconnect(struct GNUNET_NAMESTORE_Handle *h); |
89 | 89 | ||
90 | 90 | ||
91 | /** | 91 | /** |
@@ -125,13 +125,13 @@ typedef void | |||
125 | * @return handle to abort the request | 125 | * @return handle to abort the request |
126 | */ | 126 | */ |
127 | struct GNUNET_NAMESTORE_QueueEntry * | 127 | struct GNUNET_NAMESTORE_QueueEntry * |
128 | GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | 128 | GNUNET_NAMESTORE_records_store(struct GNUNET_NAMESTORE_Handle *h, |
129 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 129 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
130 | const char *label, | 130 | const char *label, |
131 | unsigned int rd_count, | 131 | unsigned int rd_count, |
132 | const struct GNUNET_GNSRECORD_Data *rd, | 132 | const struct GNUNET_GNSRECORD_Data *rd, |
133 | GNUNET_NAMESTORE_ContinuationWithStatus cont, | 133 | GNUNET_NAMESTORE_ContinuationWithStatus cont, |
134 | void *cont_cls); | 134 | void *cont_cls); |
135 | 135 | ||
136 | 136 | ||
137 | /** | 137 | /** |
@@ -162,11 +162,11 @@ typedef void | |||
162 | * @return handle to abort the request | 162 | * @return handle to abort the request |
163 | */ | 163 | */ |
164 | struct GNUNET_NAMESTORE_QueueEntry * | 164 | struct GNUNET_NAMESTORE_QueueEntry * |
165 | GNUNET_NAMESTORE_set_nick (struct GNUNET_NAMESTORE_Handle *h, | 165 | GNUNET_NAMESTORE_set_nick(struct GNUNET_NAMESTORE_Handle *h, |
166 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 166 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
167 | const char *nick, | 167 | const char *nick, |
168 | GNUNET_NAMESTORE_ContinuationWithStatus cont, | 168 | GNUNET_NAMESTORE_ContinuationWithStatus cont, |
169 | void *cont_cls); | 169 | void *cont_cls); |
170 | 170 | ||
171 | 171 | ||
172 | /** | 172 | /** |
@@ -184,13 +184,13 @@ GNUNET_NAMESTORE_set_nick (struct GNUNET_NAMESTORE_Handle *h, | |||
184 | * @return handle to abort the request | 184 | * @return handle to abort the request |
185 | */ | 185 | */ |
186 | struct GNUNET_NAMESTORE_QueueEntry * | 186 | struct GNUNET_NAMESTORE_QueueEntry * |
187 | GNUNET_NAMESTORE_records_lookup (struct GNUNET_NAMESTORE_Handle *h, | 187 | GNUNET_NAMESTORE_records_lookup(struct GNUNET_NAMESTORE_Handle *h, |
188 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 188 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
189 | const char *label, | 189 | const char *label, |
190 | GNUNET_SCHEDULER_TaskCallback error_cb, | 190 | GNUNET_SCHEDULER_TaskCallback error_cb, |
191 | void *error_cb_cls, | 191 | void *error_cb_cls, |
192 | GNUNET_NAMESTORE_RecordMonitor rm, | 192 | GNUNET_NAMESTORE_RecordMonitor rm, |
193 | void *rm_cls); | 193 | void *rm_cls); |
194 | 194 | ||
195 | 195 | ||
196 | /** | 196 | /** |
@@ -211,13 +211,13 @@ GNUNET_NAMESTORE_records_lookup (struct GNUNET_NAMESTORE_Handle *h, | |||
211 | * cancel | 211 | * cancel |
212 | */ | 212 | */ |
213 | struct GNUNET_NAMESTORE_QueueEntry * | 213 | struct GNUNET_NAMESTORE_QueueEntry * |
214 | GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, | 214 | GNUNET_NAMESTORE_zone_to_name(struct GNUNET_NAMESTORE_Handle *h, |
215 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 215 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
216 | const struct GNUNET_CRYPTO_EcdsaPublicKey *value_zone, | 216 | const struct GNUNET_CRYPTO_EcdsaPublicKey *value_zone, |
217 | GNUNET_SCHEDULER_TaskCallback error_cb, | 217 | GNUNET_SCHEDULER_TaskCallback error_cb, |
218 | void *error_cb_cls, | 218 | void *error_cb_cls, |
219 | GNUNET_NAMESTORE_RecordMonitor proc, | 219 | GNUNET_NAMESTORE_RecordMonitor proc, |
220 | void *proc_cls); | 220 | void *proc_cls); |
221 | 221 | ||
222 | 222 | ||
223 | /** | 223 | /** |
@@ -229,7 +229,7 @@ GNUNET_NAMESTORE_zone_to_name (struct GNUNET_NAMESTORE_Handle *h, | |||
229 | * @param qe operation to cancel | 229 | * @param qe operation to cancel |
230 | */ | 230 | */ |
231 | void | 231 | void |
232 | GNUNET_NAMESTORE_cancel (struct GNUNET_NAMESTORE_QueueEntry *qe); | 232 | GNUNET_NAMESTORE_cancel(struct GNUNET_NAMESTORE_QueueEntry *qe); |
233 | 233 | ||
234 | 234 | ||
235 | /** | 235 | /** |
@@ -258,14 +258,14 @@ GNUNET_NAMESTORE_cancel (struct GNUNET_NAMESTORE_QueueEntry *qe); | |||
258 | * @return an iterator handle to use for iteration | 258 | * @return an iterator handle to use for iteration |
259 | */ | 259 | */ |
260 | struct GNUNET_NAMESTORE_ZoneIterator * | 260 | struct GNUNET_NAMESTORE_ZoneIterator * |
261 | GNUNET_NAMESTORE_zone_iteration_start (struct GNUNET_NAMESTORE_Handle *h, | 261 | GNUNET_NAMESTORE_zone_iteration_start(struct GNUNET_NAMESTORE_Handle *h, |
262 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 262 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
263 | GNUNET_SCHEDULER_TaskCallback error_cb, | 263 | GNUNET_SCHEDULER_TaskCallback error_cb, |
264 | void *error_cb_cls, | 264 | void *error_cb_cls, |
265 | GNUNET_NAMESTORE_RecordMonitor proc, | 265 | GNUNET_NAMESTORE_RecordMonitor proc, |
266 | void *proc_cls, | 266 | void *proc_cls, |
267 | GNUNET_SCHEDULER_TaskCallback finish_cb, | 267 | GNUNET_SCHEDULER_TaskCallback finish_cb, |
268 | void *finish_cb_cls); | 268 | void *finish_cb_cls); |
269 | 269 | ||
270 | 270 | ||
271 | /** | 271 | /** |
@@ -277,8 +277,8 @@ GNUNET_NAMESTORE_zone_iteration_start (struct GNUNET_NAMESTORE_Handle *h, | |||
277 | * (before #GNUNET_NAMESTORE_zone_iterator_next is to be called again) | 277 | * (before #GNUNET_NAMESTORE_zone_iterator_next is to be called again) |
278 | */ | 278 | */ |
279 | void | 279 | void |
280 | GNUNET_NAMESTORE_zone_iterator_next (struct GNUNET_NAMESTORE_ZoneIterator *it, | 280 | GNUNET_NAMESTORE_zone_iterator_next(struct GNUNET_NAMESTORE_ZoneIterator *it, |
281 | uint64_t limit); | 281 | uint64_t limit); |
282 | 282 | ||
283 | 283 | ||
284 | /** | 284 | /** |
@@ -289,7 +289,7 @@ GNUNET_NAMESTORE_zone_iterator_next (struct GNUNET_NAMESTORE_ZoneIterator *it, | |||
289 | * @param it the iterator | 289 | * @param it the iterator |
290 | */ | 290 | */ |
291 | void | 291 | void |
292 | GNUNET_NAMESTORE_zone_iteration_stop (struct GNUNET_NAMESTORE_ZoneIterator *it); | 292 | GNUNET_NAMESTORE_zone_iteration_stop(struct GNUNET_NAMESTORE_ZoneIterator *it); |
293 | 293 | ||
294 | 294 | ||
295 | /** | 295 | /** |
@@ -326,15 +326,15 @@ struct GNUNET_NAMESTORE_ZoneMonitor; | |||
326 | * @return handle to stop monitoring | 326 | * @return handle to stop monitoring |
327 | */ | 327 | */ |
328 | struct GNUNET_NAMESTORE_ZoneMonitor * | 328 | struct GNUNET_NAMESTORE_ZoneMonitor * |
329 | GNUNET_NAMESTORE_zone_monitor_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 329 | GNUNET_NAMESTORE_zone_monitor_start(const struct GNUNET_CONFIGURATION_Handle *cfg, |
330 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 330 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
331 | int iterate_first, | 331 | int iterate_first, |
332 | GNUNET_SCHEDULER_TaskCallback error_cb, | 332 | GNUNET_SCHEDULER_TaskCallback error_cb, |
333 | void *error_cb_cls, | 333 | void *error_cb_cls, |
334 | GNUNET_NAMESTORE_RecordMonitor monitor, | 334 | GNUNET_NAMESTORE_RecordMonitor monitor, |
335 | void *monitor_cls, | 335 | void *monitor_cls, |
336 | GNUNET_SCHEDULER_TaskCallback sync_cb, | 336 | GNUNET_SCHEDULER_TaskCallback sync_cb, |
337 | void *sync_cb_cls); | 337 | void *sync_cb_cls); |
338 | 338 | ||
339 | 339 | ||
340 | /** | 340 | /** |
@@ -359,8 +359,8 @@ GNUNET_NAMESTORE_zone_monitor_start (const struct GNUNET_CONFIGURATION_Handle *c | |||
359 | * (before #GNUNET_NAMESTORE_zone_monitor_next is to be called again) | 359 | * (before #GNUNET_NAMESTORE_zone_monitor_next is to be called again) |
360 | */ | 360 | */ |
361 | void | 361 | void |
362 | GNUNET_NAMESTORE_zone_monitor_next (struct GNUNET_NAMESTORE_ZoneMonitor *zm, | 362 | GNUNET_NAMESTORE_zone_monitor_next(struct GNUNET_NAMESTORE_ZoneMonitor *zm, |
363 | uint64_t limit); | 363 | uint64_t limit); |
364 | 364 | ||
365 | 365 | ||
366 | /** | 366 | /** |
@@ -369,7 +369,7 @@ GNUNET_NAMESTORE_zone_monitor_next (struct GNUNET_NAMESTORE_ZoneMonitor *zm, | |||
369 | * @param zm handle to the monitor activity to stop | 369 | * @param zm handle to the monitor activity to stop |
370 | */ | 370 | */ |
371 | void | 371 | void |
372 | GNUNET_NAMESTORE_zone_monitor_stop (struct GNUNET_NAMESTORE_ZoneMonitor *zm); | 372 | GNUNET_NAMESTORE_zone_monitor_stop(struct GNUNET_NAMESTORE_ZoneMonitor *zm); |
373 | 373 | ||
374 | 374 | ||
375 | #if 0 /* keep Emacsens' auto-indent happy */ | 375 | #if 0 /* keep Emacsens' auto-indent happy */ |