aboutsummaryrefslogtreecommitdiff
path: root/src/block
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
parent916e2b18a9dafd874cd6737ecb12b744f941e9ea (diff)
downloadgnunet-2d2c37c438c9a0a98798ff1ddd7c99550bdabae9.tar.gz
gnunet-2d2c37c438c9a0a98798ff1ddd7c99550bdabae9.zip
-DOC: Documentation cleanup pass through BLOCK library
Diffstat (limited to 'src/block')
-rw-r--r--src/block/plugin_block_template.c7
-rw-r--r--src/block/plugin_block_test.c7
2 files changed, 6 insertions, 8 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 */
diff --git a/src/block/plugin_block_test.c b/src/block/plugin_block_test.c
index 2e404bbc2..5afac9205 100644
--- a/src/block/plugin_block_test.c
+++ b/src/block/plugin_block_test.c
@@ -53,7 +53,7 @@
53 * by this @a type of block (this is not an error) 53 * by this @a type of block (this is not an error)
54 */ 54 */
55static struct GNUNET_BLOCK_Group * 55static struct GNUNET_BLOCK_Group *
56block_plugin_test_create_group (void *cls, 56block_plugin_test_create_group (void *ctx,
57 enum GNUNET_BLOCK_Type type, 57 enum GNUNET_BLOCK_Type type,
58 const void *raw_data, 58 const void *raw_data,
59 size_t raw_data_size, 59 size_t raw_data_size,
@@ -77,7 +77,7 @@ block_plugin_test_create_group (void *cls,
77 bf_size = TEST_BF_SIZE; 77 bf_size = TEST_BF_SIZE;
78 } 78 }
79 GNUNET_break (NULL == va_arg (va, const char *)); 79 GNUNET_break (NULL == va_arg (va, const char *));
80 return GNUNET_BLOCK_GROUP_bf_create (cls, 80 return GNUNET_BLOCK_GROUP_bf_create (ctx,
81 bf_size, 81 bf_size,
82 BLOOMFILTER_K, 82 BLOOMFILTER_K,
83 type, 83 type,
@@ -90,10 +90,9 @@ block_plugin_test_create_group (void *cls,
90 * Function called to validate a query. 90 * Function called to validate a query.
91 * 91 *
92 * @param cls closure 92 * @param cls closure
93 * @param ctx block context
94 * @param type block type 93 * @param type block type
95 * @param query original query (hash) 94 * @param query original query (hash)
96 * @param xquery extrended query data (can be NULL, depending on type) 95 * @param xquery extended query data (can be NULL, depending on type)
97 * @param xquery_size number of bytes in @a xquery 96 * @param xquery_size number of bytes in @a xquery
98 * @return #GNUNET_OK if the query is fine, #GNUNET_NO if not, #GNUNET_SYSERR if @a type is not supported 97 * @return #GNUNET_OK if the query is fine, #GNUNET_NO if not, #GNUNET_SYSERR if @a type is not supported
99 */ 98 */