don't run set with valgrind per default
[oweals/gnunet.git] / src / include / gnunet_datastore_plugin.h
index 90b78b68fa6951d8323bd48b2ef24984cb1c8aea..2295d4e7216d456b395174c186b41f1e19f389a9 100644 (file)
@@ -1,6 +1,6 @@
 /*
      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
@@ -161,7 +161,8 @@ typedef void
  * @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,
@@ -195,7 +196,8 @@ typedef void
  */
 typedef void
 (*PluginGetKeys) (void *cls,
-                 PluginKeyProcessor proc, void *proc_cls);
+                 PluginKeyProcessor proc,
+                  void *proc_cls);
 
 
 /**
@@ -246,7 +248,7 @@ typedef void
  * 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
@@ -266,9 +268,7 @@ 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
@@ -278,7 +278,7 @@ typedef void
 typedef void
 (*PluginUpdate) (void *cls,
                 uint64_t uid,
-                int delta,
+                uint32_t delta,
                 struct GNUNET_TIME_Absolute expire,
                 PluginUpdateCont cont,
                 void *cont_cls);