aboutsummaryrefslogtreecommitdiff
path: root/src/setu/plugin_block_setu_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setu/plugin_block_setu_test.c')
-rw-r--r--src/setu/plugin_block_setu_test.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/setu/plugin_block_setu_test.c b/src/setu/plugin_block_setu_test.c
index 1de086092..fd0c8a680 100644
--- a/src/setu/plugin_block_setu_test.c
+++ b/src/setu/plugin_block_setu_test.c
@@ -19,7 +19,7 @@
19 */ 19 */
20 20
21/** 21/**
22 * @file set/plugin_block_set_test.c 22 * @file setu/plugin_block_setu_test.c
23 * @brief set test block, recognizes elements with non-zero first byte as invalid 23 * @brief set test block, recognizes elements with non-zero first byte as invalid
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -46,16 +46,16 @@
46 * @return characterization of result 46 * @return characterization of result
47 */ 47 */
48static enum GNUNET_BLOCK_EvaluationResult 48static enum GNUNET_BLOCK_EvaluationResult
49block_plugin_set_test_evaluate (void *cls, 49block_plugin_setu_test_evaluate (void *cls,
50 struct GNUNET_BLOCK_Context *ctx, 50 struct GNUNET_BLOCK_Context *ctx,
51 enum GNUNET_BLOCK_Type type, 51 enum GNUNET_BLOCK_Type type,
52 struct GNUNET_BLOCK_Group *group, 52 struct GNUNET_BLOCK_Group *group,
53 enum GNUNET_BLOCK_EvaluationOptions eo, 53 enum GNUNET_BLOCK_EvaluationOptions eo,
54 const struct GNUNET_HashCode *query, 54 const struct GNUNET_HashCode *query,
55 const void *xquery, 55 const void *xquery,
56 size_t xquery_size, 56 size_t xquery_size,
57 const void *reply_block, 57 const void *reply_block,
58 size_t reply_block_size) 58 size_t reply_block_size)
59{ 59{
60 if ((NULL == reply_block) || 60 if ((NULL == reply_block) ||
61 (reply_block_size == 0) || 61 (reply_block_size == 0) ||
@@ -77,11 +77,11 @@ block_plugin_set_test_evaluate (void *cls,
77 * (or if extracting a key from a block of this type does not work) 77 * (or if extracting a key from a block of this type does not work)
78 */ 78 */
79static int 79static int
80block_plugin_set_test_get_key (void *cls, 80block_plugin_setu_test_get_key (void *cls,
81 enum GNUNET_BLOCK_Type type, 81 enum GNUNET_BLOCK_Type type,
82 const void *block, 82 const void *block,
83 size_t block_size, 83 size_t block_size,
84 struct GNUNET_HashCode *key) 84 struct GNUNET_HashCode *key)
85{ 85{
86 return GNUNET_SYSERR; 86 return GNUNET_SYSERR;
87} 87}
@@ -91,17 +91,17 @@ block_plugin_set_test_get_key (void *cls,
91 * Entry point for the plugin. 91 * Entry point for the plugin.
92 */ 92 */
93void * 93void *
94libgnunet_plugin_block_set_test_init (void *cls) 94libgnunet_plugin_block_setu_test_init (void *cls)
95{ 95{
96 static enum GNUNET_BLOCK_Type types[] = { 96 static enum GNUNET_BLOCK_Type types[] = {
97 GNUNET_BLOCK_TYPE_SET_TEST, 97 GNUNET_BLOCK_TYPE_SETU_TEST,
98 GNUNET_BLOCK_TYPE_ANY /* end of list */ 98 GNUNET_BLOCK_TYPE_ANY /* end of list */
99 }; 99 };
100 struct GNUNET_BLOCK_PluginFunctions *api; 100 struct GNUNET_BLOCK_PluginFunctions *api;
101 101
102 api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions); 102 api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions);
103 api->evaluate = &block_plugin_set_test_evaluate; 103 api->evaluate = &block_plugin_setu_test_evaluate;
104 api->get_key = &block_plugin_set_test_get_key; 104 api->get_key = &block_plugin_setu_test_get_key;
105 api->types = types; 105 api->types = types;
106 return api; 106 return api;
107} 107}
@@ -111,7 +111,7 @@ libgnunet_plugin_block_set_test_init (void *cls)
111 * Exit point from the plugin. 111 * Exit point from the plugin.
112 */ 112 */
113void * 113void *
114libgnunet_plugin_block_set_test_done (void *cls) 114libgnunet_plugin_block_setu_test_done (void *cls)
115{ 115{
116 struct GNUNET_BLOCK_PluginFunctions *api = cls; 116 struct GNUNET_BLOCK_PluginFunctions *api = cls;
117 117
@@ -120,4 +120,4 @@ libgnunet_plugin_block_set_test_done (void *cls)
120} 120}
121 121
122 122
123/* end of plugin_block_set_test.c */ 123/* end of plugin_block_setu_test.c */