aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_container_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-08-29 19:46:39 +0000
committerChristian Grothoff <christian@grothoff.org>2009-08-29 19:46:39 +0000
commitab3a3be75688c71b23570406816dbd12c67529ec (patch)
tree83174f4313261c9f613fb947c5576e24c36f3f10 /src/include/gnunet_container_lib.h
parentdb5fce6cd527aa49fb5762d730564a918131a30f (diff)
downloadgnunet-ab3a3be75688c71b23570406816dbd12c67529ec.tar.gz
gnunet-ab3a3be75688c71b23570406816dbd12c67529ec.zip
more fixes
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r--src/include/gnunet_container_lib.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index 1adae17b1..087324174 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -52,10 +52,13 @@ struct GNUNET_CONTAINER_BloomFilter;
52/** 52/**
53 * Iterator over HashCodes. 53 * Iterator over HashCodes.
54 * 54 *
55 * @param cls closure
56 * @param next set to the next hash code
55 * @return GNUNET_YES if next was updated 57 * @return GNUNET_YES if next was updated
56 * GNUNET_NO if there are no more entries 58 * GNUNET_NO if there are no more entries
57 */ 59 */
58typedef int (*GNUNET_HashCodeIterator) (GNUNET_HashCode * next, void *arg); 60typedef int (*GNUNET_HashCodeIterator) (void *cls,
61 GNUNET_HashCode * next);
59 62
60/** 63/**
61 * Load a bloom-filter from a file. 64 * Load a bloom-filter from a file.
@@ -170,14 +173,14 @@ int GNUNET_CONTAINER_bloomfilter_or (struct GNUNET_CONTAINER_BloomFilter *bf,
170 * 173 *
171 * @param bf the filter 174 * @param bf the filter
172 * @param iterator an iterator over all elements stored in the BF 175 * @param iterator an iterator over all elements stored in the BF
173 * @param iterator_arg argument to the iterator function 176 * @param iterator_cls closure for iterator
174 * @param size the new size for the filter 177 * @param size the new size for the filter
175 * @param k the new number of GNUNET_CRYPTO_hash-function to apply per element 178 * @param k the new number of GNUNET_CRYPTO_hash-function to apply per element
176 */ 179 */
177void GNUNET_CONTAINER_bloomfilter_resize (struct GNUNET_CONTAINER_BloomFilter 180void GNUNET_CONTAINER_bloomfilter_resize (struct GNUNET_CONTAINER_BloomFilter
178 *bf, 181 *bf,
179 GNUNET_HashCodeIterator iterator, 182 GNUNET_HashCodeIterator iterator,
180 void *iterator_arg, 183 void *iterator_cls,
181 unsigned int size, unsigned int k); 184 unsigned int size, unsigned int k);
182 185
183/* ****************** metadata ******************* */ 186/* ****************** metadata ******************* */
@@ -276,14 +279,14 @@ void GNUNET_CONTAINER_meta_data_add_publication_date (struct
276 * Iterate over MD entries, excluding thumbnails. 279 * Iterate over MD entries, excluding thumbnails.
277 * 280 *
278 * @param md metadata to inspect 281 * @param md metadata to inspect
279 * @param iterator function to call on each entry 282 * @param iter function to call on each entry
280 * @param closure closure for iterator 283 * @param iter_cls closure for iterator
281 * @return number of entries 284 * @return number of entries
282 */ 285 */
283int GNUNET_CONTAINER_meta_data_get_contents (const struct 286int GNUNET_CONTAINER_meta_data_get_contents (const struct
284 GNUNET_CONTAINER_MetaData *md, 287 GNUNET_CONTAINER_MetaData *md,
285 GNUNET_CONTAINER_MetaDataProcessor 288 GNUNET_CONTAINER_MetaDataProcessor
286 iterator, void *closure); 289 iter, void *iter_cls);
287 290
288/** 291/**
289 * Get the first MD entry of the given type. 292 * Get the first MD entry of the given type.