aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/plugin_datacache_template.c')
-rw-r--r--src/datacache/plugin_datacache_template.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/datacache/plugin_datacache_template.c b/src/datacache/plugin_datacache_template.c
index 60862dac2..865f431d7 100644
--- a/src/datacache/plugin_datacache_template.c
+++ b/src/datacache/plugin_datacache_template.c
@@ -31,7 +31,7 @@
31/** 31/**
32 * Context for all functions in this plugin. 32 * Context for all functions in this plugin.
33 */ 33 */
34struct Plugin 34struct Plugin
35{ 35{
36 /** 36 /**
37 * Our execution environment. 37 * Our execution environment.
@@ -51,13 +51,13 @@ struct Plugin
51 * @param discard_time when to discard the value in any case 51 * @param discard_time when to discard the value in any case
52 * @return 0 on error, number of bytes used otherwise 52 * @return 0 on error, number of bytes used otherwise
53 */ 53 */
54static size_t 54static size_t
55template_plugin_put (void *cls, 55template_plugin_put (void *cls,
56 const GNUNET_HashCode * key, 56 const GNUNET_HashCode * key,
57 size_t size, 57 size_t size,
58 const char *data, 58 const char *data,
59 enum GNUNET_BLOCK_Type type, 59 enum GNUNET_BLOCK_Type type,
60 struct GNUNET_TIME_Absolute discard_time) 60 struct GNUNET_TIME_Absolute discard_time)
61{ 61{
62 GNUNET_break (0); 62 GNUNET_break (0);
63 return 0; 63 return 0;
@@ -75,12 +75,11 @@ template_plugin_put (void *cls,
75 * @param iter_cls closure for iter 75 * @param iter_cls closure for iter
76 * @return the number of results found 76 * @return the number of results found
77 */ 77 */
78static unsigned int 78static unsigned int
79template_plugin_get (void *cls, 79template_plugin_get (void *cls,
80 const GNUNET_HashCode * key, 80 const GNUNET_HashCode * key,
81 enum GNUNET_BLOCK_Type type, 81 enum GNUNET_BLOCK_Type type,
82 GNUNET_DATACACHE_Iterator iter, 82 GNUNET_DATACACHE_Iterator iter, void *iter_cls)
83 void *iter_cls)
84{ 83{
85 GNUNET_break (0); 84 GNUNET_break (0);
86 return 0; 85 return 0;
@@ -93,8 +92,8 @@ template_plugin_get (void *cls,
93 * 92 *
94 * @param cls closure (our "struct Plugin") 93 * @param cls closure (our "struct Plugin")
95 * @return GNUNET_OK on success, GNUNET_SYSERR on error 94 * @return GNUNET_OK on success, GNUNET_SYSERR on error
96 */ 95 */
97static int 96static int
98template_plugin_del (void *cls) 97template_plugin_del (void *cls)
99{ 98{
100 GNUNET_break (0); 99 GNUNET_break (0);
@@ -148,4 +147,3 @@ libgnunet_plugin_datacache_template_done (void *cls)
148 147
149 148
150/* end of plugin_datacache_template.c */ 149/* end of plugin_datacache_template.c */
151