diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-27 14:14:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-27 14:14:24 +0000 |
commit | 8eac129743fb8a319b49b8344a01d618b0eb46d3 (patch) | |
tree | e6f5af012b088997bf60da7576d480dc0f429365 /src/set/gnunet-service-set_union_strata_estimator.h | |
parent | 0d3932d5151f61cf4838123dd7edc66f27c08dfc (diff) |
-dox, indentation
Diffstat (limited to 'src/set/gnunet-service-set_union_strata_estimator.h')
-rw-r--r-- | src/set/gnunet-service-set_union_strata_estimator.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/set/gnunet-service-set_union_strata_estimator.h b/src/set/gnunet-service-set_union_strata_estimator.h index bb8d09d318..4d18db60b8 100644 --- a/src/set/gnunet-service-set_union_strata_estimator.h +++ b/src/set/gnunet-service-set_union_strata_estimator.h @@ -45,8 +45,14 @@ extern "C" */ struct StrataEstimator { + struct InvertibleBloomFilter **strata; + + /** + * Size of the IBF array in @e strata + */ unsigned int strata_count; + unsigned int ibf_size; }; @@ -58,7 +64,8 @@ struct StrataEstimator * @param buf buffer to write to, must be of appropriate size */ void -strata_estimator_write (const struct StrataEstimator *se, void *buf); +strata_estimator_write (const struct StrataEstimator *se, + void *buf); /** @@ -69,7 +76,8 @@ strata_estimator_write (const struct StrataEstimator *se, void *buf); * @param se strata estimator to write to */ void -strata_estimator_read (const void *buf, struct StrataEstimator *se); +strata_estimator_read (const void *buf, + struct StrataEstimator *se); /** @@ -81,7 +89,9 @@ strata_estimator_read (const void *buf, struct StrataEstimator *se); * @return a freshly allocated, empty strata estimator */ struct StrataEstimator * -strata_estimator_create (unsigned int strata_count, uint32_t ibf_size, uint8_t ibf_hashnum); +strata_estimator_create (unsigned int strata_count, + uint32_t ibf_size, + uint8_t ibf_hashnum); /** @@ -104,7 +114,8 @@ strata_estimator_difference (const struct StrataEstimator *se1, * @param key key to add */ void -strata_estimator_insert (struct StrataEstimator *se, struct IBF_Key key); +strata_estimator_insert (struct StrataEstimator *se, + struct IBF_Key key); /** @@ -114,7 +125,8 @@ strata_estimator_insert (struct StrataEstimator *se, struct IBF_Key key); * @param key key to remove */ void -strata_estimator_remove (struct StrataEstimator *se, struct IBF_Key key); +strata_estimator_remove (struct StrataEstimator *se, + struct IBF_Key key); /** |