aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_container_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-30 19:46:17 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-30 19:46:17 +0000
commitbf7619be0f8e5fca7a16c28720ab908134d139bc (patch)
tree3433dea1f210b3da2329edc13183d0d8c14e0d81 /src/include/gnunet_container_lib.h
parentb47c2f2d5175300a531778727c29787ab78749b8 (diff)
downloadgnunet-bf7619be0f8e5fca7a16c28720ab908134d139bc.tar.gz
gnunet-bf7619be0f8e5fca7a16c28720ab908134d139bc.zip
add multihashmap_clear to API
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r--src/include/gnunet_container_lib.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index b83130307..125bc81b2 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -699,6 +699,18 @@ GNUNET_CONTAINER_multihashmap_remove_all (struct GNUNET_CONTAINER_MultiHashMap *
699 699
700/** 700/**
701 * @ingroup hashmap 701 * @ingroup hashmap
702 * Remove all entries from the map.
703 * Note that the values would not be "freed".
704 *
705 * @param map the map
706 * @return number of values removed
707 */
708unsigned int
709GNUNET_CONTAINER_multihashmap_clear (struct GNUNET_CONTAINER_MultiHashMap *map);
710
711
712/**
713 * @ingroup hashmap
702 * Check if the map contains any value under the given 714 * Check if the map contains any value under the given
703 * key (including values that are NULL). 715 * key (including values that are NULL).
704 * 716 *
@@ -757,8 +769,7 @@ GNUNET_CONTAINER_multihashmap_put (struct GNUNET_CONTAINER_MultiHashMap *map,
757 * @return the number of key value pairs 769 * @return the number of key value pairs
758 */ 770 */
759unsigned int 771unsigned int
760GNUNET_CONTAINER_multihashmap_size (const struct GNUNET_CONTAINER_MultiHashMap 772GNUNET_CONTAINER_multihashmap_size (const struct GNUNET_CONTAINER_MultiHashMap *map);
761 *map);
762 773
763 774
764/** 775/**
@@ -772,8 +783,7 @@ GNUNET_CONTAINER_multihashmap_size (const struct GNUNET_CONTAINER_MultiHashMap
772 * #GNUNET_SYSERR if it aborted iteration 783 * #GNUNET_SYSERR if it aborted iteration
773 */ 784 */
774int 785int
775GNUNET_CONTAINER_multihashmap_iterate (const struct 786GNUNET_CONTAINER_multihashmap_iterate (const struct GNUNET_CONTAINER_MultiHashMap *map,
776 GNUNET_CONTAINER_MultiHashMap *map,
777 GNUNET_CONTAINER_HashMapIterator it, 787 GNUNET_CONTAINER_HashMapIterator it,
778 void *it_cls); 788 void *it_cls);
779 789