diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-12 15:01:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-12 15:01:12 +0000 |
commit | f28210411388325a1606f1b2c17c196852265016 (patch) | |
tree | 013ab690afa9380305fbee4360d8469eec7d970e /src/include/gnunet_datastore_service.h | |
parent | f4c9fdda81d61cc8a8119faf7f624650137b43ee (diff) | |
download | gnunet-f28210411388325a1606f1b2c17c196852265016.tar.gz gnunet-f28210411388325a1606f1b2c17c196852265016.zip |
move
Diffstat (limited to 'src/include/gnunet_datastore_service.h')
-rw-r--r-- | src/include/gnunet_datastore_service.h | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h index 6f16dad22..e2de185bd 100644 --- a/src/include/gnunet_datastore_service.h +++ b/src/include/gnunet_datastore_service.h | |||
@@ -211,6 +211,36 @@ GNUNET_DATASTORE_update (struct GNUNET_DATASTORE_Handle *h, | |||
211 | 211 | ||
212 | 212 | ||
213 | /** | 213 | /** |
214 | * Explicitly remove some content from the database. | ||
215 | * The "cont"inuation will be called with status | ||
216 | * "GNUNET_OK" if content was removed, "GNUNET_NO" | ||
217 | * if no matching entry was found and "GNUNET_SYSERR" | ||
218 | * on all other types of errors. | ||
219 | * | ||
220 | * @param h handle to the datastore | ||
221 | * @param key key for the value | ||
222 | * @param size number of bytes in data | ||
223 | * @param data content stored | ||
224 | * @param queue_priority ranking of this request in the priority queue | ||
225 | * @param max_queue_size at what queue size should this request be dropped | ||
226 | * (if other requests of higher priority are in the queue) | ||
227 | * @param timeout how long to wait at most for a response | ||
228 | * @param cont continuation to call when done | ||
229 | * @param cont_cls closure for cont | ||
230 | */ | ||
231 | void | ||
232 | GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h, | ||
233 | const GNUNET_HashCode *key, | ||
234 | uint32_t size, | ||
235 | const void *data, | ||
236 | unsigned int queue_priority, | ||
237 | unsigned int max_queue_size, | ||
238 | struct GNUNET_TIME_Relative timeout, | ||
239 | GNUNET_DATASTORE_ContinuationWithStatus cont, | ||
240 | void *cont_cls); | ||
241 | |||
242 | |||
243 | /** | ||
214 | * An iterator over a set of items stored in the datastore. | 244 | * An iterator over a set of items stored in the datastore. |
215 | * | 245 | * |
216 | * @param cls closure | 246 | * @param cls closure |
@@ -299,35 +329,6 @@ GNUNET_DATASTORE_get_random (struct GNUNET_DATASTORE_Handle *h, | |||
299 | void *iter_cls); | 329 | void *iter_cls); |
300 | 330 | ||
301 | 331 | ||
302 | /** | ||
303 | * Explicitly remove some content from the database. | ||
304 | * The "cont"inuation will be called with status | ||
305 | * "GNUNET_OK" if content was removed, "GNUNET_NO" | ||
306 | * if no matching entry was found and "GNUNET_SYSERR" | ||
307 | * on all other types of errors. | ||
308 | * | ||
309 | * @param h handle to the datastore | ||
310 | * @param key key for the value | ||
311 | * @param size number of bytes in data | ||
312 | * @param data content stored | ||
313 | * @param queue_priority ranking of this request in the priority queue | ||
314 | * @param max_queue_size at what queue size should this request be dropped | ||
315 | * (if other requests of higher priority are in the queue) | ||
316 | * @param timeout how long to wait at most for a response | ||
317 | * @param cont continuation to call when done | ||
318 | * @param cont_cls closure for cont | ||
319 | */ | ||
320 | void | ||
321 | GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h, | ||
322 | const GNUNET_HashCode *key, | ||
323 | uint32_t size, | ||
324 | const void *data, | ||
325 | unsigned int queue_priority, | ||
326 | unsigned int max_queue_size, | ||
327 | struct GNUNET_TIME_Relative timeout, | ||
328 | GNUNET_DATASTORE_ContinuationWithStatus cont, | ||
329 | void *cont_cls); | ||
330 | |||
331 | 332 | ||
332 | #if 0 /* keep Emacsens' auto-indent happy */ | 333 | #if 0 /* keep Emacsens' auto-indent happy */ |
333 | { | 334 | { |