aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_datastore_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-07 14:05:06 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-07 14:05:06 +0000
commitf7779acffd50d74b0fd309dd962f96c012034339 (patch)
tree4acdf658f3bd2b63a5c61d5a4c370a3745a315bf /src/include/gnunet_datastore_service.h
parentf3e4e62791a032420892a4f947125cf1aceb2c36 (diff)
downloadgnunet-f7779acffd50d74b0fd309dd962f96c012034339.tar.gz
gnunet-f7779acffd50d74b0fd309dd962f96c012034339.zip
-simplify apis, doxygen
Diffstat (limited to 'src/include/gnunet_datastore_service.h')
-rw-r--r--src/include/gnunet_datastore_service.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h
index 9a9ba5429..c229c78fb 100644
--- a/src/include/gnunet_datastore_service.h
+++ b/src/include/gnunet_datastore_service.h
@@ -105,22 +105,17 @@ typedef void (*GNUNET_DATASTORE_ContinuationWithStatus) (void *cls,
105 * @param h handle to the datastore 105 * @param h handle to the datastore
106 * @param amount how much space (in bytes) should be reserved (for content only) 106 * @param amount how much space (in bytes) should be reserved (for content only)
107 * @param entries how many entries will be created (to calculate per-entry overhead) 107 * @param entries how many entries will be created (to calculate per-entry overhead)
108 * @param queue_priority ranking of this request in the priority queue
109 * @param max_queue_size at what queue size should this request be dropped
110 * (if other requests of higher priority are in the queue)
111 * @param timeout how long to wait at most for a response (or before dying in queue)
112 * @param cont continuation to call when done; "success" will be set to 108 * @param cont continuation to call when done; "success" will be set to
113 * a positive reservation value if space could be reserved. 109 * a positive reservation value if space could be reserved.
114 * @param cont_cls closure for cont 110 * @param cont_cls closure for @a cont
115 * @return NULL if the entry was not queued, otherwise a handle that can be used to 111 * @return NULL if the entry was not queued, otherwise a handle that can be used to
116 * cancel; note that even if NULL is returned, the callback will be invoked 112 * cancel; note that even if NULL is returned, the callback will be invoked
117 * (or rather, will already have been invoked) 113 * (or rather, will already have been invoked)
118 */ 114 */
119struct GNUNET_DATASTORE_QueueEntry * 115struct GNUNET_DATASTORE_QueueEntry *
120GNUNET_DATASTORE_reserve (struct GNUNET_DATASTORE_Handle *h, uint64_t amount, 116GNUNET_DATASTORE_reserve (struct GNUNET_DATASTORE_Handle *h,
121 uint32_t entries, unsigned int queue_priority, 117 uint64_t amount,
122 unsigned int max_queue_size, 118 uint32_t entries,
123 struct GNUNET_TIME_Relative timeout,
124 GNUNET_DATASTORE_ContinuationWithStatus cont, 119 GNUNET_DATASTORE_ContinuationWithStatus cont,
125 void *cont_cls); 120 void *cont_cls);
126 121