/*
This file is part of GNUnet
- Copyright (C) 2009, 2011 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2009, 2011 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
* @file
* API for the database backend plugins.
*
- * @defgroup datastore-plugin Datastore service plugin API
+ * @defgroup datastore-plugin Data Store service plugin API
* API for the database backend plugins.
* @{
*/
* @param cont_cls continuation closure for @a cont
*/
typedef void
-(*PluginPut) (void *cls, const struct GNUNET_HashCode *key,
+(*PluginPut) (void *cls,
+ const struct GNUNET_HashCode *key,
uint32_t size,
const void *data,
enum GNUNET_BLOCK_Type type,
*/
typedef void
(*PluginGetKeys) (void *cls,
- PluginKeyProcessor proc, void *proc_cls);
+ PluginKeyProcessor proc,
+ void *proc_cls);
/**
* Update continuation.
*
* @param cls closure
- * @param status #GNUNET_OK or #GNUNET_SYSERROR
+ * @param status #GNUNET_OK or #GNUNET_SYSERR
* @param msg error message on error
*/
typedef void
* @param cls closure
* @param uid unique identifier of the datum
* @param delta by how much should the priority
- * change? If priority + delta < 0 the
- * priority should be set to 0 (never go
- * negative).
+ * change?
* @param expire new expiration time should be the
* MAX of any existing expiration time and
* this value
typedef void
(*PluginUpdate) (void *cls,
uint64_t uid,
- int delta,
+ uint32_t delta,
struct GNUNET_TIME_Absolute expire,
PluginUpdateCont cont,
void *cont_cls);
};
-/** @} */ /* end of group */
-
#endif
+
+/** @} */ /* end of group */