aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-29 12:35:25 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-29 12:35:25 +0000
commit3b27b1f3e34b4634359b83e7e3bb4e47340d05cf (patch)
treed9a921c9882ae8b91311354ef3c4a9cd96409413 /src/include
parentc8209edd23a78f90a06db835e351dfc3c621d47b (diff)
downloadgnunet-3b27b1f3e34b4634359b83e7e3bb4e47340d05cf.tar.gz
gnunet-3b27b1f3e34b4634359b83e7e3bb4e47340d05cf.zip
-indent
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_container_lib.h35
1 files changed, 16 insertions, 19 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index 00540d9ea..9b7f8ecd1 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -68,7 +68,8 @@ struct GNUNET_CONTAINER_BloomFilter;
68 * @return #GNUNET_YES if next was updated 68 * @return #GNUNET_YES if next was updated
69 * #GNUNET_NO if there are no more entries 69 * #GNUNET_NO if there are no more entries
70 */ 70 */
71typedef int (*GNUNET_HashCodeIterator) (void *cls, struct GNUNET_HashCode * next); 71typedef int (*GNUNET_HashCodeIterator) (void *cls,
72 struct GNUNET_HashCode *next);
72 73
73 74
74/** 75/**
@@ -84,7 +85,8 @@ typedef int (*GNUNET_HashCodeIterator) (void *cls, struct GNUNET_HashCode * next
84 * @return the bloomfilter 85 * @return the bloomfilter
85 */ 86 */
86struct GNUNET_CONTAINER_BloomFilter * 87struct GNUNET_CONTAINER_BloomFilter *
87GNUNET_CONTAINER_bloomfilter_load (const char *filename, size_t size, 88GNUNET_CONTAINER_bloomfilter_load (const char *filename,
89 size_t size,
88 unsigned int k); 90 unsigned int k);
89 91
90 92
@@ -103,7 +105,8 @@ GNUNET_CONTAINER_bloomfilter_load (const char *filename, size_t size,
103 * @return the bloomfilter 105 * @return the bloomfilter
104 */ 106 */
105struct GNUNET_CONTAINER_BloomFilter * 107struct GNUNET_CONTAINER_BloomFilter *
106GNUNET_CONTAINER_bloomfilter_init (const char *data, size_t size, 108GNUNET_CONTAINER_bloomfilter_init (const char *data,
109 size_t size,
107 unsigned int k); 110 unsigned int k);
108 111
109 112
@@ -117,8 +120,7 @@ GNUNET_CONTAINER_bloomfilter_init (const char *data, size_t size,
117 * @return #GNUNET_SYSERR if the data array of the wrong size 120 * @return #GNUNET_SYSERR if the data array of the wrong size
118 */ 121 */
119int 122int
120GNUNET_CONTAINER_bloomfilter_get_raw_data (const struct 123GNUNET_CONTAINER_bloomfilter_get_raw_data (const struct GNUNET_CONTAINER_BloomFilter *bf,
121 GNUNET_CONTAINER_BloomFilter *bf,
122 char *data, size_t size); 124 char *data, size_t size);
123 125
124 126
@@ -131,8 +133,8 @@ GNUNET_CONTAINER_bloomfilter_get_raw_data (const struct
131 * @return #GNUNET_YES if the element is in the filter, #GNUNET_NO if not 133 * @return #GNUNET_YES if the element is in the filter, #GNUNET_NO if not
132 */ 134 */
133int 135int
134GNUNET_CONTAINER_bloomfilter_test (const struct GNUNET_CONTAINER_BloomFilter 136GNUNET_CONTAINER_bloomfilter_test (const struct GNUNET_CONTAINER_BloomFilter *bf,
135 *bf, const struct GNUNET_HashCode * e); 137 const struct GNUNET_HashCode *e);
136 138
137 139
138/** 140/**
@@ -144,7 +146,7 @@ GNUNET_CONTAINER_bloomfilter_test (const struct GNUNET_CONTAINER_BloomFilter
144 */ 146 */
145void 147void
146GNUNET_CONTAINER_bloomfilter_add (struct GNUNET_CONTAINER_BloomFilter *bf, 148GNUNET_CONTAINER_bloomfilter_add (struct GNUNET_CONTAINER_BloomFilter *bf,
147 const struct GNUNET_HashCode * e); 149 const struct GNUNET_HashCode *e);
148 150
149 151
150/** 152/**
@@ -156,7 +158,7 @@ GNUNET_CONTAINER_bloomfilter_add (struct GNUNET_CONTAINER_BloomFilter *bf,
156 */ 158 */
157void 159void
158GNUNET_CONTAINER_bloomfilter_remove (struct GNUNET_CONTAINER_BloomFilter *bf, 160GNUNET_CONTAINER_bloomfilter_remove (struct GNUNET_CONTAINER_BloomFilter *bf,
159 const struct GNUNET_HashCode * e); 161 const struct GNUNET_HashCode *e);
160 162
161 163
162/** 164/**
@@ -167,8 +169,7 @@ GNUNET_CONTAINER_bloomfilter_remove (struct GNUNET_CONTAINER_BloomFilter *bf,
167 * @return copy of bf 169 * @return copy of bf
168 */ 170 */
169struct GNUNET_CONTAINER_BloomFilter * 171struct GNUNET_CONTAINER_BloomFilter *
170GNUNET_CONTAINER_bloomfilter_copy (const struct GNUNET_CONTAINER_BloomFilter 172GNUNET_CONTAINER_bloomfilter_copy (const struct GNUNET_CONTAINER_BloomFilter *bf);
171 *bf);
172 173
173 174
174 175
@@ -192,8 +193,7 @@ GNUNET_CONTAINER_bloomfilter_free (struct GNUNET_CONTAINER_BloomFilter *bf);
192 * @return number of bytes used for the data of the bloom filter 193 * @return number of bytes used for the data of the bloom filter
193 */ 194 */
194size_t 195size_t
195GNUNET_CONTAINER_bloomfilter_get_size (const struct GNUNET_CONTAINER_BloomFilter 196GNUNET_CONTAINER_bloomfilter_get_size (const struct GNUNET_CONTAINER_BloomFilter *bf);
196 *bf);
197 197
198 198
199/** 199/**
@@ -235,8 +235,7 @@ GNUNET_CONTAINER_bloomfilter_or (struct GNUNET_CONTAINER_BloomFilter *bf,
235 */ 235 */
236int 236int
237GNUNET_CONTAINER_bloomfilter_or2 (struct GNUNET_CONTAINER_BloomFilter *bf, 237GNUNET_CONTAINER_bloomfilter_or2 (struct GNUNET_CONTAINER_BloomFilter *bf,
238 const struct GNUNET_CONTAINER_BloomFilter 238 const struct GNUNET_CONTAINER_BloomFilter *to_or);
239 *to_or);
240 239
241/** 240/**
242 * @ingroup bloomfilter 241 * @ingroup bloomfilter
@@ -308,10 +307,8 @@ GNUNET_CONTAINER_meta_data_destroy (struct GNUNET_CONTAINER_MetaData *md);
308 * @return #GNUNET_YES if they are equal 307 * @return #GNUNET_YES if they are equal
309 */ 308 */
310int 309int
311GNUNET_CONTAINER_meta_data_test_equal (const struct GNUNET_CONTAINER_MetaData 310GNUNET_CONTAINER_meta_data_test_equal (const struct GNUNET_CONTAINER_MetaData *md1,
312 *md1, 311 const struct GNUNET_CONTAINER_MetaData *md2);
313 const struct GNUNET_CONTAINER_MetaData
314 *md2);
315 312
316 313
317/** 314/**