diff options
Diffstat (limited to 'src/block/plugin_block_template.c')
-rw-r--r-- | src/block/plugin_block_template.c | 35 |
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 | */ |
48 | static enum GNUNET_BLOCK_EvaluationResult | 48 | static enum GNUNET_BLOCK_EvaluationResult |
49 | block_plugin_template_evaluate (void *cls, | 49 | block_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 | */ |
74 | static int | 74 | static int |
75 | block_plugin_template_get_key (void *cls, | 75 | block_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, | |||
88 | void * | 87 | void * |
89 | libgnunet_plugin_block_template_init (void *cls) | 88 | libgnunet_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)); |