aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-04 17:57:21 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-04 17:57:21 +0000
commit2663c23e2b0944dfb015332f10ff65cfc802588a (patch)
treec44540741af69049b6f1f0f7ea1dd574214d5c3c /src/include
parent060e3c202b9c4aed542617ac84b6b3061f51be2b (diff)
downloadgnunet-2663c23e2b0944dfb015332f10ff65cfc802588a.tar.gz
gnunet-2663c23e2b0944dfb015332f10ff65cfc802588a.zip
renaming, fixes
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_datastore_plugin.h32
-rw-r--r--src/include/gnunet_datastore_service.h2
-rw-r--r--src/include/gnunet_protocols.h2
3 files changed, 18 insertions, 18 deletions
diff --git a/src/include/gnunet_datastore_plugin.h b/src/include/gnunet_datastore_plugin.h
index 8df61b2f4..372ed633c 100644
--- a/src/include/gnunet_datastore_plugin.h
+++ b/src/include/gnunet_datastore_plugin.h
@@ -245,7 +245,7 @@ typedef int (*PluginUpdate) (void *cls,
245 * 245 *
246 * @param cls closure 246 * @param cls closure
247 * @param type entries of which type should be considered? 247 * @param type entries of which type should be considered?
248 * Use 0 for any type. 248 * Myst not be zero (ANY).
249 * @param iter function to call on each matching value; however, 249 * @param iter function to call on each matching value; however,
250 * after the first call to "iter", the plugin must wait 250 * after the first call to "iter", the plugin must wait
251 * until "NextRequest" was called before giving the iterator 251 * until "NextRequest" was called before giving the iterator
@@ -294,6 +294,16 @@ struct GNUNET_DATASTORE_PluginFunctions
294 PluginPut put; 294 PluginPut put;
295 295
296 /** 296 /**
297 * Update the priority for a particular key in the datastore. If
298 * the expiration time in value is different than the time found in
299 * the datastore, the higher value should be kept. For the
300 * anonymity level, the lower value is to be used. The specified
301 * priority should be added to the existing priority, ignoring the
302 * priority in value.
303 */
304 PluginUpdate update;
305
306 /**
297 * Function called by iterators whenever they want the next value; 307 * Function called by iterators whenever they want the next value;
298 * note that unlike all of the other callbacks, this one does get a 308 * note that unlike all of the other callbacks, this one does get a
299 * the "next_cls" closure which is usually different from the "cls" 309 * the "next_cls" closure which is usually different from the "cls"
@@ -308,6 +318,11 @@ struct GNUNET_DATASTORE_PluginFunctions
308 PluginGet get; 318 PluginGet get;
309 319
310 /** 320 /**
321 * Iterate over content with anonymity level zero.
322 */
323 PluginSelector iter_zero_anonymity;
324
325 /**
311 * Function to get a random item with high replication score from 326 * Function to get a random item with high replication score from
312 * the database, lowering the item's replication score. Returns a 327 * the database, lowering the item's replication score. Returns a
313 * single, not expired, random item from those with the highest 328 * single, not expired, random item from those with the highest
@@ -323,21 +338,6 @@ struct GNUNET_DATASTORE_PluginFunctions
323 PluginRandomGet expiration_get; 338 PluginRandomGet expiration_get;
324 339
325 /** 340 /**
326 * Update the priority for a particular key in the datastore. If
327 * the expiration time in value is different than the time found in
328 * the datastore, the higher value should be kept. For the
329 * anonymity level, the lower value is to be used. The specified
330 * priority should be added to the existing priority, ignoring the
331 * priority in value.
332 */
333 PluginUpdate update;
334
335 /**
336 * Iterate over content with anonymity level zero.
337 */
338 PluginSelector iter_zero_anonymity;
339
340 /**
341 * Delete the database. The next operation is 341 * Delete the database. The next operation is
342 * guaranteed to be unloading of the module. 342 * guaranteed to be unloading of the module.
343 */ 343 */
diff --git a/src/include/gnunet_datastore_service.h b/src/include/gnunet_datastore_service.h
index 756d2f3be..e18d4ef12 100644
--- a/src/include/gnunet_datastore_service.h
+++ b/src/include/gnunet_datastore_service.h
@@ -322,7 +322,7 @@ GNUNET_DATASTORE_iterate_key (struct GNUNET_DATASTORE_Handle *h,
322 * @param max_queue_size at what queue size should this request be dropped 322 * @param max_queue_size at what queue size should this request be dropped
323 * (if other requests of higher priority are in the queue) 323 * (if other requests of higher priority are in the queue)
324 * @param timeout how long to wait at most for a response 324 * @param timeout how long to wait at most for a response
325 * @param type allowed type for the operation (ANY for 'all types') 325 * @param type allowed type for the operation (never zero)
326 * @param iter function to call on a random value; it 326 * @param iter function to call on a random value; it
327 * will be called once with a value (if available) 327 * will be called once with a value (if available)
328 * and always once with a value of NULL at the end. 328 * and always once with a value of NULL at the end.
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 327b4de51..a485f6712 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -452,7 +452,7 @@ extern "C"
452/** 452/**
453 * Message sent by datastore client to get random data. 453 * Message sent by datastore client to get random data.
454 */ 454 */
455#define GNUNET_MESSAGE_TYPE_DATASTORE_GET_RANDOM 98 455#define GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION 98
456 456
457/** 457/**
458 * Message sent by datastore client to get random data. 458 * Message sent by datastore client to get random data.