diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-29 12:35:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-29 12:35:25 +0000 |
commit | 3b27b1f3e34b4634359b83e7e3bb4e47340d05cf (patch) | |
tree | d9a921c9882ae8b91311354ef3c4a9cd96409413 /src/include | |
parent | c8209edd23a78f90a06db835e351dfc3c621d47b (diff) | |
download | gnunet-3b27b1f3e34b4634359b83e7e3bb4e47340d05cf.tar.gz gnunet-3b27b1f3e34b4634359b83e7e3bb4e47340d05cf.zip |
-indent
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_container_lib.h | 35 |
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 | */ |
71 | typedef int (*GNUNET_HashCodeIterator) (void *cls, struct GNUNET_HashCode * next); | 71 | typedef 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 | */ |
86 | struct GNUNET_CONTAINER_BloomFilter * | 87 | struct GNUNET_CONTAINER_BloomFilter * |
87 | GNUNET_CONTAINER_bloomfilter_load (const char *filename, size_t size, | 88 | GNUNET_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 | */ |
105 | struct GNUNET_CONTAINER_BloomFilter * | 107 | struct GNUNET_CONTAINER_BloomFilter * |
106 | GNUNET_CONTAINER_bloomfilter_init (const char *data, size_t size, | 108 | GNUNET_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 | */ |
119 | int | 122 | int |
120 | GNUNET_CONTAINER_bloomfilter_get_raw_data (const struct | 123 | GNUNET_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 | */ |
133 | int | 135 | int |
134 | GNUNET_CONTAINER_bloomfilter_test (const struct GNUNET_CONTAINER_BloomFilter | 136 | GNUNET_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 | */ |
145 | void | 147 | void |
146 | GNUNET_CONTAINER_bloomfilter_add (struct GNUNET_CONTAINER_BloomFilter *bf, | 148 | GNUNET_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 | */ |
157 | void | 159 | void |
158 | GNUNET_CONTAINER_bloomfilter_remove (struct GNUNET_CONTAINER_BloomFilter *bf, | 160 | GNUNET_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 | */ |
169 | struct GNUNET_CONTAINER_BloomFilter * | 171 | struct GNUNET_CONTAINER_BloomFilter * |
170 | GNUNET_CONTAINER_bloomfilter_copy (const struct GNUNET_CONTAINER_BloomFilter | 172 | GNUNET_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 | */ |
194 | size_t | 195 | size_t |
195 | GNUNET_CONTAINER_bloomfilter_get_size (const struct GNUNET_CONTAINER_BloomFilter | 196 | GNUNET_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 | */ |
236 | int | 236 | int |
237 | GNUNET_CONTAINER_bloomfilter_or2 (struct GNUNET_CONTAINER_BloomFilter *bf, | 237 | GNUNET_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 | */ |
310 | int | 309 | int |
311 | GNUNET_CONTAINER_meta_data_test_equal (const struct GNUNET_CONTAINER_MetaData | 310 | GNUNET_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 | /** |