aboutsummaryrefslogtreecommitdiff
path: root/src/block/plugin_block_test.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-23 08:38:43 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-23 08:38:43 +0000
commit12faacd1ef84944a000c6cd01e2b44d0f404e236 (patch)
tree848e0d996e3a0201dffc1e3da31941d7146a6de0 /src/block/plugin_block_test.c
parentc6e5a96f679fe6e35e29792e4992fa337a3b69b5 (diff)
downloadgnunet-12faacd1ef84944a000c6cd01e2b44d0f404e236.tar.gz
gnunet-12faacd1ef84944a000c6cd01e2b44d0f404e236.zip
-doxygen
Diffstat (limited to 'src/block/plugin_block_test.c')
-rw-r--r--src/block/plugin_block_test.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/block/plugin_block_test.c b/src/block/plugin_block_test.c
index eaffa361f..130c2ac3c 100644
--- a/src/block/plugin_block_test.c
+++ b/src/block/plugin_block_test.c
@@ -98,7 +98,7 @@ block_plugin_test_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
98 * @param block block to get the key for 98 * @param block block to get the key for
99 * @param block_size number of bytes in @a block 99 * @param block_size number of bytes in @a block
100 * @param key set to the key (query) for the given block 100 * @param key set to the key (query) for the given block
101 * @return GNUNET_OK on success, GNUNET_SYSERR if type not supported 101 * @return #GNUNET_OK on success, #GNUNET_SYSERR if type not supported
102 * (or if extracting a key from a block of this type does not work) 102 * (or if extracting a key from a block of this type does not work)
103 */ 103 */
104static int 104static int
@@ -114,6 +114,9 @@ block_plugin_test_get_key (void *cls, enum GNUNET_BLOCK_Type type,
114 114
115/** 115/**
116 * Entry point for the plugin. 116 * Entry point for the plugin.
117 *
118 * @param cls NULL
119 * @return the exported block API
117 */ 120 */
118void * 121void *
119libgnunet_plugin_block_test_init (void *cls) 122libgnunet_plugin_block_test_init (void *cls)
@@ -125,7 +128,7 @@ libgnunet_plugin_block_test_init (void *cls)
125 }; 128 };
126 struct GNUNET_BLOCK_PluginFunctions *api; 129 struct GNUNET_BLOCK_PluginFunctions *api;
127 130
128 api = GNUNET_malloc (sizeof (struct GNUNET_BLOCK_PluginFunctions)); 131 api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions);
129 api->evaluate = &block_plugin_test_evaluate; 132 api->evaluate = &block_plugin_test_evaluate;
130 api->get_key = &block_plugin_test_get_key; 133 api->get_key = &block_plugin_test_get_key;
131 api->types = types; 134 api->types = types;
@@ -135,6 +138,9 @@ libgnunet_plugin_block_test_init (void *cls)
135 138
136/** 139/**
137 * Exit point from the plugin. 140 * Exit point from the plugin.
141 *
142 * @param cls the return value from #libgnunet_plugin_block_test_init
143 * @return NULL
138 */ 144 */
139void * 145void *
140libgnunet_plugin_block_test_done (void *cls) 146libgnunet_plugin_block_test_done (void *cls)