aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 21:54:06 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 21:54:06 +0000
commit5746309cb4be2073d550ad7a6885e918631dbc38 (patch)
tree89455bc4aadf977816b38df13f990372cd81d71a /src/datacache/plugin_datacache_template.c
parent6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff)
downloadgnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz
gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip
indentation
Diffstat (limited to 'src/datacache/plugin_datacache_template.c')
-rw-r--r--src/datacache/plugin_datacache_template.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/datacache/plugin_datacache_template.c b/src/datacache/plugin_datacache_template.c
index 865f431d7..046c603ad 100644
--- a/src/datacache/plugin_datacache_template.c
+++ b/src/datacache/plugin_datacache_template.c
@@ -52,11 +52,8 @@ struct Plugin
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, const GNUNET_HashCode * key, size_t size,
56 const GNUNET_HashCode * key, 56 const char *data, enum GNUNET_BLOCK_Type type,
57 size_t size,
58 const char *data,
59 enum GNUNET_BLOCK_Type type,
60 struct GNUNET_TIME_Absolute discard_time) 57 struct GNUNET_TIME_Absolute discard_time)
61{ 58{
62 GNUNET_break (0); 59 GNUNET_break (0);
@@ -76,8 +73,7 @@ template_plugin_put (void *cls,
76 * @return the number of results found 73 * @return the number of results found
77 */ 74 */
78static unsigned int 75static unsigned int
79template_plugin_get (void *cls, 76template_plugin_get (void *cls, const GNUNET_HashCode * key,
80 const GNUNET_HashCode * key,
81 enum GNUNET_BLOCK_Type type, 77 enum GNUNET_BLOCK_Type type,
82 GNUNET_DATACACHE_Iterator iter, void *iter_cls) 78 GNUNET_DATACACHE_Iterator iter, void *iter_cls)
83{ 79{
@@ -121,8 +117,8 @@ libgnunet_plugin_datacache_template_init (void *cls)
121 api->get = &template_plugin_get; 117 api->get = &template_plugin_get;
122 api->put = &template_plugin_put; 118 api->put = &template_plugin_put;
123 api->del = &template_plugin_del; 119 api->del = &template_plugin_del;
124 GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, 120 GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, "template",
125 "template", _("Template datacache running\n")); 121 _("Template datacache running\n"));
126 return api; 122 return api;
127} 123}
128 124