aboutsummaryrefslogtreecommitdiff
path: root/src/block/plugin_block_template.c
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-09-07 21:48:07 +0100
committerWillow Liquorice <willow@howhill.com>2022-10-03 12:52:01 +0100
commit2d2c37c438c9a0a98798ff1ddd7c99550bdabae9 (patch)
tree45aff97da59a20518fa62806fba3557bbd8e8e05 /src/block/plugin_block_template.c
parent916e2b18a9dafd874cd6737ecb12b744f941e9ea (diff)
downloadgnunet-2d2c37c438c9a0a98798ff1ddd7c99550bdabae9.tar.gz
gnunet-2d2c37c438c9a0a98798ff1ddd7c99550bdabae9.zip
-DOC: Documentation cleanup pass through BLOCK library
Diffstat (limited to 'src/block/plugin_block_template.c')
-rw-r--r--src/block/plugin_block_template.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/block/plugin_block_template.c b/src/block/plugin_block_template.c
index 46a370924..4a271fa42 100644
--- a/src/block/plugin_block_template.c
+++ b/src/block/plugin_block_template.c
@@ -55,7 +55,7 @@
55 * by this @a type of block (this is not an error) 55 * by this @a type of block (this is not an error)
56 */ 56 */
57static struct GNUNET_BLOCK_Group * 57static struct GNUNET_BLOCK_Group *
58block_plugin_template_create_group (void *cls, 58block_plugin_template_create_group (void *ctx,
59 enum GNUNET_BLOCK_Type type, 59 enum GNUNET_BLOCK_Type type,
60 const void *raw_data, 60 const void *raw_data,
61 size_t raw_data_size, 61 size_t raw_data_size,
@@ -79,7 +79,7 @@ block_plugin_template_create_group (void *cls,
79 bf_size = TEMPLATE_BF_SIZE; 79 bf_size = TEMPLATE_BF_SIZE;
80 } 80 }
81 GNUNET_break (NULL == va_arg (va, const char *)); 81 GNUNET_break (NULL == va_arg (va, const char *));
82 return GNUNET_BLOCK_GROUP_bf_create (cls, 82 return GNUNET_BLOCK_GROUP_bf_create (ctx,
83 bf_size, 83 bf_size,
84 BLOOMFILTER_K, 84 BLOOMFILTER_K,
85 type, 85 type,
@@ -92,10 +92,9 @@ block_plugin_template_create_group (void *cls,
92 * Function called to validate a query. 92 * Function called to validate a query.
93 * 93 *
94 * @param cls closure 94 * @param cls closure
95 * @param ctx block context
96 * @param type block type 95 * @param type block type
97 * @param query original query (hash) 96 * @param query original query (hash)
98 * @param xquery extrended query data (can be NULL, depending on type) 97 * @param xquery extended query data (can be NULL, depending on type)
99 * @param xquery_size number of bytes in @a xquery 98 * @param xquery_size number of bytes in @a xquery
100 * @return #GNUNET_OK if the query is fine, #GNUNET_NO if not, #GNUNET_SYSERR if not supported 99 * @return #GNUNET_OK if the query is fine, #GNUNET_NO if not, #GNUNET_SYSERR if not supported
101 */ 100 */