summaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set_union_strata_estimator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/set/gnunet-service-set_union_strata_estimator.h')
-rw-r--r--src/set/gnunet-service-set_union_strata_estimator.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/set/gnunet-service-set_union_strata_estimator.h b/src/set/gnunet-service-set_union_strata_estimator.h
index 2c09e1089..94267a2dc 100644
--- a/src/set/gnunet-service-set_union_strata_estimator.h
+++ b/src/set/gnunet-service-set_union_strata_estimator.h
@@ -43,7 +43,8 @@ extern "C"
43/** 43/**
44 * A handle to a strata estimator. 44 * A handle to a strata estimator.
45 */ 45 */
46struct StrataEstimator { 46struct StrataEstimator
47{
47 /** 48 /**
48 * The IBFs of this strata estimator. 49 * The IBFs of this strata estimator.
49 */ 50 */
@@ -69,8 +70,8 @@ struct StrataEstimator {
69 * @return number of bytes written to @a buf 70 * @return number of bytes written to @a buf
70 */ 71 */
71size_t 72size_t
72strata_estimator_write(const struct StrataEstimator *se, 73strata_estimator_write (const struct StrataEstimator *se,
73 void *buf); 74 void *buf);
74 75
75 76
76/** 77/**
@@ -84,10 +85,10 @@ strata_estimator_write(const struct StrataEstimator *se,
84 * @return #GNUNET_OK on success 85 * @return #GNUNET_OK on success
85 */ 86 */
86int 87int
87strata_estimator_read(const void *buf, 88strata_estimator_read (const void *buf,
88 size_t buf_len, 89 size_t buf_len,
89 int is_compressed, 90 int is_compressed,
90 struct StrataEstimator *se); 91 struct StrataEstimator *se);
91 92
92 93
93/** 94/**
@@ -99,9 +100,9 @@ strata_estimator_read(const void *buf,
99 * @return a freshly allocated, empty strata estimator, NULL on error 100 * @return a freshly allocated, empty strata estimator, NULL on error
100 */ 101 */
101struct StrataEstimator * 102struct StrataEstimator *
102strata_estimator_create(unsigned int strata_count, 103strata_estimator_create (unsigned int strata_count,
103 uint32_t ibf_size, 104 uint32_t ibf_size,
104 uint8_t ibf_hashnum); 105 uint8_t ibf_hashnum);
105 106
106 107
107/** 108/**
@@ -113,8 +114,8 @@ strata_estimator_create(unsigned int strata_count,
113 * @return abs(|se1| - |se2|) 114 * @return abs(|se1| - |se2|)
114 */ 115 */
115unsigned int 116unsigned int
116strata_estimator_difference(const struct StrataEstimator *se1, 117strata_estimator_difference (const struct StrataEstimator *se1,
117 const struct StrataEstimator *se2); 118 const struct StrataEstimator *se2);
118 119
119 120
120/** 121/**
@@ -124,8 +125,8 @@ strata_estimator_difference(const struct StrataEstimator *se1,
124 * @param key key to add 125 * @param key key to add
125 */ 126 */
126void 127void
127strata_estimator_insert(struct StrataEstimator *se, 128strata_estimator_insert (struct StrataEstimator *se,
128 struct IBF_Key key); 129 struct IBF_Key key);
129 130
130 131
131/** 132/**
@@ -135,8 +136,8 @@ strata_estimator_insert(struct StrataEstimator *se,
135 * @param key key to remove 136 * @param key key to remove
136 */ 137 */
137void 138void
138strata_estimator_remove(struct StrataEstimator *se, 139strata_estimator_remove (struct StrataEstimator *se,
139 struct IBF_Key key); 140 struct IBF_Key key);
140 141
141 142
142/** 143/**
@@ -145,7 +146,7 @@ strata_estimator_remove(struct StrataEstimator *se,
145 * @param se strata estimator to destroy. 146 * @param se strata estimator to destroy.
146 */ 147 */
147void 148void
148strata_estimator_destroy(struct StrataEstimator *se); 149strata_estimator_destroy (struct StrataEstimator *se);
149 150
150 151
151/** 152/**
@@ -155,7 +156,7 @@ strata_estimator_destroy(struct StrataEstimator *se);
155 * @return the copy 156 * @return the copy
156 */ 157 */
157struct StrataEstimator * 158struct StrataEstimator *
158strata_estimator_dup(struct StrataEstimator *se); 159strata_estimator_dup (struct StrataEstimator *se);
159 160
160 161
161#if 0 /* keep Emacsens' auto-indent happy */ 162#if 0 /* keep Emacsens' auto-indent happy */