aboutsummaryrefslogtreecommitdiff
path: root/src/block/plugin_block_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 21:46:35 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 21:46:35 +0000
commit502af2167f7c218366666ca4944bd7cc54b5b19a (patch)
treea91fec5cc9769d260640bd91c6633cb9cf395524 /src/block/plugin_block_template.c
parent03af5a603b7cc53432249d5854cd412aa90dde0d (diff)
downloadgnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.tar.gz
gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.zip
indentation
Diffstat (limited to 'src/block/plugin_block_template.c')
-rw-r--r--src/block/plugin_block_template.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/block/plugin_block_template.c b/src/block/plugin_block_template.c
index 77e7c0ab9..9eb84ac4b 100644
--- a/src/block/plugin_block_template.c
+++ b/src/block/plugin_block_template.c
@@ -47,14 +47,14 @@
47 */ 47 */
48static enum GNUNET_BLOCK_EvaluationResult 48static enum GNUNET_BLOCK_EvaluationResult
49block_plugin_template_evaluate (void *cls, 49block_plugin_template_evaluate (void *cls,
50 enum GNUNET_BLOCK_Type type, 50 enum GNUNET_BLOCK_Type type,
51 const GNUNET_HashCode *query, 51 const GNUNET_HashCode * query,
52 struct GNUNET_CONTAINER_BloomFilter **bf, 52 struct GNUNET_CONTAINER_BloomFilter **bf,
53 int32_t bf_mutator, 53 int32_t bf_mutator,
54 const void *xquery, 54 const void *xquery,
55 size_t xquery_size, 55 size_t xquery_size,
56 const void *reply_block, 56 const void *reply_block,
57 size_t reply_block_size) 57 size_t reply_block_size)
58{ 58{
59 return GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED; 59 return GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED;
60} 60}
@@ -73,14 +73,13 @@ block_plugin_template_evaluate (void *cls,
73 */ 73 */
74static int 74static int
75block_plugin_template_get_key (void *cls, 75block_plugin_template_get_key (void *cls,
76 enum GNUNET_BLOCK_Type type, 76 enum GNUNET_BLOCK_Type type,
77 const void *block, 77 const void *block,
78 size_t block_size, 78 size_t block_size, GNUNET_HashCode * key)
79 GNUNET_HashCode *key)
80{ 79{
81 return GNUNET_SYSERR; 80 return GNUNET_SYSERR;
82} 81}
83 82
84 83
85/** 84/**
86 * Entry point for the plugin. 85 * Entry point for the plugin.
@@ -88,11 +87,11 @@ block_plugin_template_get_key (void *cls,
88void * 87void *
89libgnunet_plugin_block_template_init (void *cls) 88libgnunet_plugin_block_template_init (void *cls)
90{ 89{
91 static enum GNUNET_BLOCK_Type types[] = 90 static enum GNUNET_BLOCK_Type types[] =
92 { 91 {
93 /* FIXME: insert supported block types here */ 92 /* FIXME: insert supported block types here */
94 GNUNET_BLOCK_TYPE_ANY /* end of list */ 93 GNUNET_BLOCK_TYPE_ANY /* end of list */
95 }; 94 };
96 struct GNUNET_BLOCK_PluginFunctions *api; 95 struct GNUNET_BLOCK_PluginFunctions *api;
97 96
98 api = GNUNET_malloc (sizeof (struct GNUNET_BLOCK_PluginFunctions)); 97 api = GNUNET_malloc (sizeof (struct GNUNET_BLOCK_PluginFunctions));