aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set_union_strata_estimator.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-27 14:14:24 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-27 14:14:24 +0000
commit8eac129743fb8a319b49b8344a01d618b0eb46d3 (patch)
treee6f5af012b088997bf60da7576d480dc0f429365 /src/set/gnunet-service-set_union_strata_estimator.h
parent0d3932d5151f61cf4838123dd7edc66f27c08dfc (diff)
downloadgnunet-8eac129743fb8a319b49b8344a01d618b0eb46d3.tar.gz
gnunet-8eac129743fb8a319b49b8344a01d618b0eb46d3.zip
-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.h22
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 bb8d09d31..4d18db60b 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"
45 */ 45 */
46struct StrataEstimator 46struct StrataEstimator
47{ 47{
48
48 struct InvertibleBloomFilter **strata; 49 struct InvertibleBloomFilter **strata;
50
51 /**
52 * Size of the IBF array in @e strata
53 */
49 unsigned int strata_count; 54 unsigned int strata_count;
55
50 unsigned int ibf_size; 56 unsigned int ibf_size;
51}; 57};
52 58
@@ -58,7 +64,8 @@ struct StrataEstimator
58 * @param buf buffer to write to, must be of appropriate size 64 * @param buf buffer to write to, must be of appropriate size
59 */ 65 */
60void 66void
61strata_estimator_write (const struct StrataEstimator *se, void *buf); 67strata_estimator_write (const struct StrataEstimator *se,
68 void *buf);
62 69
63 70
64/** 71/**
@@ -69,7 +76,8 @@ strata_estimator_write (const struct StrataEstimator *se, void *buf);
69 * @param se strata estimator to write to 76 * @param se strata estimator to write to
70 */ 77 */
71void 78void
72strata_estimator_read (const void *buf, struct StrataEstimator *se); 79strata_estimator_read (const void *buf,
80 struct StrataEstimator *se);
73 81
74 82
75/** 83/**
@@ -81,7 +89,9 @@ strata_estimator_read (const void *buf, struct StrataEstimator *se);
81 * @return a freshly allocated, empty strata estimator 89 * @return a freshly allocated, empty strata estimator
82 */ 90 */
83struct StrataEstimator * 91struct StrataEstimator *
84strata_estimator_create (unsigned int strata_count, uint32_t ibf_size, uint8_t ibf_hashnum); 92strata_estimator_create (unsigned int strata_count,
93 uint32_t ibf_size,
94 uint8_t ibf_hashnum);
85 95
86 96
87/** 97/**
@@ -104,7 +114,8 @@ strata_estimator_difference (const struct StrataEstimator *se1,
104 * @param key key to add 114 * @param key key to add
105 */ 115 */
106void 116void
107strata_estimator_insert (struct StrataEstimator *se, struct IBF_Key key); 117strata_estimator_insert (struct StrataEstimator *se,
118 struct IBF_Key key);
108 119
109 120
110/** 121/**
@@ -114,7 +125,8 @@ strata_estimator_insert (struct StrataEstimator *se, struct IBF_Key key);
114 * @param key key to remove 125 * @param key key to remove
115 */ 126 */
116void 127void
117strata_estimator_remove (struct StrataEstimator *se, struct IBF_Key key); 128strata_estimator_remove (struct StrataEstimator *se,
129 struct IBF_Key key);
118 130
119 131
120/** 132/**