diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/block/plugin_block_template.c | 7 | ||||
-rw-r--r-- | src/block/plugin_block_test.c | 7 | ||||
-rw-r--r-- | src/include/gnunet_block_lib.h | 1 |
3 files changed, 6 insertions, 9 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 | */ |
57 | static struct GNUNET_BLOCK_Group * | 57 | static struct GNUNET_BLOCK_Group * |
58 | block_plugin_template_create_group (void *cls, | 58 | block_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 | */ |
55 | static struct GNUNET_BLOCK_Group * | 55 | static struct GNUNET_BLOCK_Group * |
56 | block_plugin_test_create_group (void *cls, | 56 | block_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 | */ |
diff --git a/src/include/gnunet_block_lib.h b/src/include/gnunet_block_lib.h index a9a5ec8af..6a6de712b 100644 --- a/src/include/gnunet_block_lib.h +++ b/src/include/gnunet_block_lib.h | |||
@@ -131,7 +131,6 @@ struct GNUNET_BLOCK_Group; | |||
131 | * | 131 | * |
132 | * @param ctx block context in which the block group is created | 132 | * @param ctx block context in which the block group is created |
133 | * @param type type of the block for which we are creating the group | 133 | * @param type type of the block for which we are creating the group |
134 | * @param nonce random value used to seed the group creation | ||
135 | * @param raw_data optional serialized prior state of the group, NULL if unavailable/fresh | 134 | * @param raw_data optional serialized prior state of the group, NULL if unavailable/fresh |
136 | * @param raw_data_size number of bytes in @a raw_data, 0 if unavailable/fresh | 135 | * @param raw_data_size number of bytes in @a raw_data, 0 if unavailable/fresh |
137 | * @param ... type-specific additional data, can be empty | 136 | * @param ... type-specific additional data, can be empty |