aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_block_group_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_block_group_lib.h')
-rw-r--r--src/include/gnunet_block_group_lib.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/gnunet_block_group_lib.h b/src/include/gnunet_block_group_lib.h
index 6cb601757..b1f59899e 100644
--- a/src/include/gnunet_block_group_lib.h
+++ b/src/include/gnunet_block_group_lib.h
@@ -31,6 +31,7 @@
31#ifndef GNUNET_BLOCK_GROUP_LIB_H 31#ifndef GNUNET_BLOCK_GROUP_LIB_H
32#define GNUNET_BLOCK_GROUP_LIB_H 32#define GNUNET_BLOCK_GROUP_LIB_H
33 33
34
34#include "gnunet_util_lib.h" 35#include "gnunet_util_lib.h"
35#include "gnunet_block_lib.h" 36#include "gnunet_block_lib.h"
36 37
@@ -68,7 +69,6 @@ GNUNET_BLOCK_GROUP_compute_bloomfilter_size (unsigned int entry_count,
68 * @param bf_size size of the Bloom filter 69 * @param bf_size size of the Bloom filter
69 * @param bf_k K-value for the Bloom filter 70 * @param bf_k K-value for the Bloom filter
70 * @param type block type 71 * @param type block type
71 * @param nonce random value used to seed the group creation
72 * @param raw_data optional serialized prior state of the group, NULL if unavailable/fresh 72 * @param raw_data optional serialized prior state of the group, NULL if unavailable/fresh
73 * @param raw_data_size number of bytes in @a raw_data, 0 if unavailable/fresh 73 * @param raw_data_size number of bytes in @a raw_data, 0 if unavailable/fresh
74 * @return block group handle, NULL if block groups are not supported 74 * @return block group handle, NULL if block groups are not supported
@@ -79,7 +79,6 @@ GNUNET_BLOCK_GROUP_bf_create (void *cls,
79 size_t bf_size, 79 size_t bf_size,
80 unsigned int bf_k, 80 unsigned int bf_k,
81 enum GNUNET_BLOCK_Type type, 81 enum GNUNET_BLOCK_Type type,
82 uint32_t nonce,
83 const void *raw_data, 82 const void *raw_data,
84 size_t raw_data_size); 83 size_t raw_data_size);
85 84
@@ -92,9 +91,9 @@ GNUNET_BLOCK_GROUP_bf_create (void *cls,
92 * @param bg block group to use for testing 91 * @param bg block group to use for testing
93 * @param hc hash of element to evaluate 92 * @param hc hash of element to evaluate
94 * @return #GNUNET_YES if @a hc is (likely) a duplicate 93 * @return #GNUNET_YES if @a hc is (likely) a duplicate
95 * #GNUNET_NO if @a hc was definitively not in @bg (but now is) 94 * #GNUNET_NO if @a hc was definitively not in @a bg (but now is)
96 */ 95 */
97int 96enum GNUNET_GenericReturnValue
98GNUNET_BLOCK_GROUP_bf_test_and_set (struct GNUNET_BLOCK_Group *bg, 97GNUNET_BLOCK_GROUP_bf_test_and_set (struct GNUNET_BLOCK_Group *bg,
99 const struct GNUNET_HashCode *hc); 98 const struct GNUNET_HashCode *hc);
100 99