port 0 for tcp plugin is BAD
[oweals/gnunet.git] / src / datacache / plugin_datacache_template.c
index 163f72a7ad631590f34e2be7b643cd44fb1b8c32..60862dac2a846b2eb0c0907787161fccf31a168f 100644 (file)
@@ -4,7 +4,7 @@
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 2, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
@@ -25,7 +25,7 @@
  */
 #include "platform.h"
 #include "gnunet_util_lib.h"
-#include "plugin_datacache.h"
+#include "gnunet_datacache_plugin.h"
 
 
 /**
@@ -51,12 +51,12 @@ struct Plugin
  * @param discard_time when to discard the value in any case
  * @return 0 on error, number of bytes used otherwise
  */
-static uint32_t 
+static size_t 
 template_plugin_put (void *cls,
                     const GNUNET_HashCode * key,
-                    uint32_t size,
+                    size_t size,
                     const char *data,
-                    uint32_t type,
+                    enum GNUNET_BLOCK_Type type,
                     struct GNUNET_TIME_Absolute discard_time)
 {
   GNUNET_break (0);
@@ -78,7 +78,7 @@ template_plugin_put (void *cls,
 static unsigned int 
 template_plugin_get (void *cls,
                     const GNUNET_HashCode * key,
-                    uint32_t type,
+                    enum GNUNET_BLOCK_Type type,
                     GNUNET_DATACACHE_Iterator iter,
                     void *iter_cls)
 {