aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_container_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r--src/include/gnunet_container_lib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index 125bc81b2..1ecf4f52a 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -854,6 +854,22 @@ GNUNET_CONTAINER_multihashmap_get_multiple (const struct GNUNET_CONTAINER_MultiH
854 void *it_cls); 854 void *it_cls);
855 855
856 856
857/**
858 * @ingroup hashmap
859 * Call @a it on a random value from the map, or not at all
860 * if the map is empty.
861 *
862 * @param map the map
863 * @param it function to call on a random entry
864 * @param it_cls extra argument to @a it
865 * @return the number of key value pairs processed, zero or one.
866 */
867unsigned int
868GNUNET_CONTAINER_multihashmap_get_random (const struct GNUNET_CONTAINER_MultiHashMap *map,
869 GNUNET_CONTAINER_HashMapIterator it,
870 void *it_cls);
871
872
857/* ***************** Version of Multihashmap for peer identities ****************** */ 873/* ***************** Version of Multihashmap for peer identities ****************** */
858 874
859/** 875/**