diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-12-16 16:14:09 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-12-16 16:14:09 +0000 |
commit | aa35fc15e22f972072d9e091b01e3a3c70e598f0 (patch) | |
tree | e089fbc23eaf185400193af8d1529b22b1570429 /src/util/container_bloomfilter.c | |
parent | 11f1a50939e73ce6fd193518f17bbc99ee430264 (diff) | |
download | gnunet-aa35fc15e22f972072d9e091b01e3a3c70e598f0.tar.gz gnunet-aa35fc15e22f972072d9e091b01e3a3c70e598f0.zip |
- finished work on multipart sending in intersection
- added getter for addressesPerElement from a bloomfilter
- added multipart message format for intersection
- added multipart message type for intersection
Diffstat (limited to 'src/util/container_bloomfilter.c')
-rw-r--r-- | src/util/container_bloomfilter.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c index 579c1261d..645729553 100644 --- a/src/util/container_bloomfilter.c +++ b/src/util/container_bloomfilter.c | |||
@@ -79,6 +79,21 @@ struct GNUNET_CONTAINER_BloomFilter | |||
79 | }; | 79 | }; |
80 | 80 | ||
81 | 81 | ||
82 | /** | ||
83 | * Get the number of the addresses set per element in the bloom filter. | ||
84 | * | ||
85 | * @param bf the filter | ||
86 | * @return addresses set per element in the bf | ||
87 | */ | ||
88 | size_t | ||
89 | GNUNET_CONTAINER_bloomfilter_get_element_addresses (const struct GNUNET_CONTAINER_BloomFilter | ||
90 | *bf) | ||
91 | { | ||
92 | if (bf == NULL) | ||
93 | return 0; | ||
94 | return bf->addressesPerElement; | ||
95 | } | ||
96 | |||
82 | 97 | ||
83 | /** | 98 | /** |
84 | * Get size of the bloom filter. | 99 | * Get size of the bloom filter. |