diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-06 12:55:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-06 12:55:38 +0000 |
commit | 2ffb6f329c85b24367199f910f6603950e1fba68 (patch) | |
tree | 537e401b59e3f7c435d5d8369ba3088e1679743b /src/include/gnunet_datastore_service.h | |
parent | b8da6057b2c0c66931ccde9b4bba418fc5222724 (diff) | |
download | gnunet-2ffb6f329c85b24367199f910f6603950e1fba68.tar.gz gnunet-2ffb6f329c85b24367199f910f6603950e1fba68.zip |
DHT PUT integration into FS
Diffstat (limited to 'src/include/gnunet_datastore_service.h')
-rw-r--r-- | src/include/gnunet_datastore_service.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h index c41d21058..8d35f7900 100644 --- a/src/include/gnunet_datastore_service.h +++ b/src/include/gnunet_datastore_service.h | |||
@@ -355,6 +355,33 @@ GNUNET_DATASTORE_get_random (struct GNUNET_DATASTORE_Handle *h, | |||
355 | 355 | ||
356 | 356 | ||
357 | /** | 357 | /** |
358 | * Get a zero-anonymity value from the datastore. | ||
359 | * | ||
360 | * @param h handle to the datastore | ||
361 | * @param queue_priority ranking of this request in the priority queue | ||
362 | * @param max_queue_size at what queue size should this request be dropped | ||
363 | * (if other requests of higher priority are in the queue) | ||
364 | * @param timeout how long to wait at most for a response | ||
365 | * @param type allowed type for the operation | ||
366 | * @param iter function to call on a random value; it | ||
367 | * will be called once with a value (if available) | ||
368 | * and always once with a value of NULL. | ||
369 | * @param iter_cls closure for iter | ||
370 | * @return NULL if the entry was not queued, otherwise a handle that can be used to | ||
371 | * cancel; note that even if NULL is returned, the callback will be invoked | ||
372 | * (or rather, will already have been invoked) | ||
373 | */ | ||
374 | struct GNUNET_DATASTORE_QueueEntry * | ||
375 | GNUNET_DATASTORE_get_zero_anonymity (struct GNUNET_DATASTORE_Handle *h, | ||
376 | unsigned int queue_priority, | ||
377 | unsigned int max_queue_size, | ||
378 | struct GNUNET_TIME_Relative timeout, | ||
379 | enum GNUNET_BLOCK_Type type, | ||
380 | GNUNET_DATASTORE_Iterator iter, | ||
381 | void *iter_cls); | ||
382 | |||
383 | |||
384 | /** | ||
358 | * Cancel a datastore operation. The final callback from the | 385 | * Cancel a datastore operation. The final callback from the |
359 | * operation must not have been done yet. | 386 | * operation must not have been done yet. |
360 | * | 387 | * |