diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-04-04 17:57:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-04-04 17:57:21 +0000 |
commit | 2663c23e2b0944dfb015332f10ff65cfc802588a (patch) | |
tree | c44540741af69049b6f1f0f7ea1dd574214d5c3c /src/include/gnunet_datastore_plugin.h | |
parent | 060e3c202b9c4aed542617ac84b6b3061f51be2b (diff) | |
download | gnunet-2663c23e2b0944dfb015332f10ff65cfc802588a.tar.gz gnunet-2663c23e2b0944dfb015332f10ff65cfc802588a.zip |
renaming, fixes
Diffstat (limited to 'src/include/gnunet_datastore_plugin.h')
-rw-r--r-- | src/include/gnunet_datastore_plugin.h | 32 |
1 files changed, 16 insertions, 16 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 | */ |