diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/set/gnunet-service-set_union_strata_estimator.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/set/gnunet-service-set_union_strata_estimator.h')
-rw-r--r-- | src/set/gnunet-service-set_union_strata_estimator.h | 37 |
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 | */ |
46 | struct StrataEstimator { | 46 | struct 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 | */ |
71 | size_t | 72 | size_t |
72 | strata_estimator_write(const struct StrataEstimator *se, | 73 | strata_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 | */ |
86 | int | 87 | int |
87 | strata_estimator_read(const void *buf, | 88 | strata_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 | */ |
101 | struct StrataEstimator * | 102 | struct StrataEstimator * |
102 | strata_estimator_create(unsigned int strata_count, | 103 | strata_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 | */ |
115 | unsigned int | 116 | unsigned int |
116 | strata_estimator_difference(const struct StrataEstimator *se1, | 117 | strata_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 | */ |
126 | void | 127 | void |
127 | strata_estimator_insert(struct StrataEstimator *se, | 128 | strata_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 | */ |
137 | void | 138 | void |
138 | strata_estimator_remove(struct StrataEstimator *se, | 139 | strata_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 | */ |
147 | void | 148 | void |
148 | strata_estimator_destroy(struct StrataEstimator *se); | 149 | strata_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 | */ |
157 | struct StrataEstimator * | 158 | struct StrataEstimator * |
158 | strata_estimator_dup(struct StrataEstimator *se); | 159 | strata_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 */ |