GNUnet 0.29.1-12-g57a93edc3
 
Loading...
Searching...
No Matches
MultiHashMap

Hash map with multiple values per key. More...

Collaboration diagram for MultiHashMap:

Data Structures

struct  GNUNET_CONTAINER_multihashmap_Trampoline_
 
struct  GNUNET_CONTAINER_multipeermap_Trampoline_
 
struct  GNUNET_CONTAINER_multishortmap_Trampoline_
 
struct  GNUNET_CONTAINER_multiuuidmap_Trampoline_
 
struct  GNUNET_CONTAINER_multihashmap32_Trampoline_
 

Macros

#define GNUNET_HASHMAP_LIB_H
 
#define GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE   1024
 Largest key size (in bytes) a map supports.
 
#define GNUNET_CONTAINER_MULTIMAP_CHECK_(cond)    ((void) sizeof (char[(cond) ? 1 : -1]))
 Fail to compile if cond is false.
 
#define GNUNET_CONTAINER_MULTIMAP_DEFINE_COMMON_(prefix, MapType, IterType, ValueType)
 Wrappers that are the same whether the keys are passed by pointer or by value.
 
#define GNUNET_CONTAINER_MULTIMAP_DEFINE_PTRKEY(prefix, MapType, IterType, CbType, KeyType, ValueType)
 Define a hash map type whose keys are passed by pointer.
 
#define GNUNET_CONTAINER_MULTIMAP_DEFINE_VALKEY(prefix, MapType, IterType, CbType, KeyType, ValueType)
 Define a hash map type whose keys are passed by value, for keys of up to 8 bytes such as integers.
 

Typedefs

typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiMapIteratorCallback) (void *cls, const void *key, void *value)
 Iterator over the entries of a map with untyped keys and values.
 
typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiHashMapIteratorCallback) (void *cls, const struct GNUNET_HashCode *key, void *value)
 
typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_PeerMapIterator) (void *cls, const struct GNUNET_PeerIdentity *key, void *value)
 
typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_ShortmapIterator) (void *cls, const struct GNUNET_ShortHashCode *key, void *value)
 
typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiUuidmapIteratorCallback) (void *cls, const struct GNUNET_Uuid *key, void *value)
 
typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiHashMapIterator32Callback) (void *cls, uint32_t key, void *value)
 

Enumerations

enum  GNUNET_CONTAINER_MultiHashMapOption { GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE , GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE , GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY , GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST }
 Options for storing values in the HashMap. More...
 
enum  GNUNET_CONTAINER_MultiMapFlags { GNUNET_CONTAINER_MULTIMAP_FLAG_NONE = 0 , GNUNET_CONTAINER_MULTIMAP_FLAG_DO_NOT_COPY_KEYS = 1 , GNUNET_CONTAINER_MULTIMAP_FLAG_UNPROTECTED = 2 }
 Flags for GNUNET_CONTAINER_multimap_create_(). More...
 

Functions

struct GNUNET_CONTAINER_MultiMap * GNUNET_CONTAINER_multimap_create_ (unsigned int len, size_t key_size, enum GNUNET_CONTAINER_MultiMapFlags flags)
 Create a map.
 
void GNUNET_CONTAINER_multimap_destroy_ (struct GNUNET_CONTAINER_MultiMap *map)
 Destroy a map.
 
unsigned int GNUNET_CONTAINER_multimap_size_ (const struct GNUNET_CONTAINER_MultiMap *map)
 Get the number of key-value pairs in a map.
 
void * GNUNET_CONTAINER_multimap_get_ (const struct GNUNET_CONTAINER_MultiMap *map, const void *key)
 Get a value stored under a key.
 
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_contains_ (const struct GNUNET_CONTAINER_MultiMap *map, const void *key)
 Check if the map has any value stored under a key.
 
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_contains_value_ (const struct GNUNET_CONTAINER_MultiMap *map, const void *key, const void *value)
 Check if the map has a particular key-value pair.
 
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_put_ (struct GNUNET_CONTAINER_MultiMap *map, const void *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
 Store a key-value pair in a map.
 
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_remove_ (struct GNUNET_CONTAINER_MultiMap *map, const void *key, const void *value)
 Remove a key-value pair from a map.
 
int GNUNET_CONTAINER_multimap_remove_all_ (struct GNUNET_CONTAINER_MultiMap *map, const void *key)
 Remove all values stored under a key from a map.
 
unsigned int GNUNET_CONTAINER_multimap_clear_ (struct GNUNET_CONTAINER_MultiMap *map)
 Remove all key-value pairs from a map.
 
int GNUNET_CONTAINER_multimap_iterate_ (struct GNUNET_CONTAINER_MultiMap *map, GNUNET_CONTAINER_MultiMapIteratorCallback it, void *it_cls)
 Call a function on every key-value pair of a map.
 
int GNUNET_CONTAINER_multimap_get_multiple_ (struct GNUNET_CONTAINER_MultiMap *map, const void *key, GNUNET_CONTAINER_MultiMapIteratorCallback it, void *it_cls)
 Call a function on every value stored under a key.
 
struct GNUNET_CONTAINER_MultiMapIterator * GNUNET_CONTAINER_multimap_iterator_create_ (const struct GNUNET_CONTAINER_MultiMap *map)
 Create an iterator over a map.
 
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_iterator_next_ (struct GNUNET_CONTAINER_MultiMapIterator *iter, void *key, const void **value)
 Get the next key-value pair from an iterator.
 
void GNUNET_CONTAINER_multimap_iterator_destroy_ (struct GNUNET_CONTAINER_MultiMapIterator *iter)
 Destroy an iterator.
 
static void GNUNET_CONTAINER_multihashmap_destroy (struct GNUNET_CONTAINER_MultiHashMap *map)
 
static unsigned int GNUNET_CONTAINER_multihashmap_size (const struct GNUNET_CONTAINER_MultiHashMap *map)
 
static unsigned int GNUNET_CONTAINER_multihashmap_clear (struct GNUNET_CONTAINER_MultiHashMap *map)
 
static struct GNUNET_CONTAINER_MultiHashMapIterator * GNUNET_CONTAINER_multihashmap_iterator_create (const struct GNUNET_CONTAINER_MultiHashMap *map)
 
static void GNUNET_CONTAINER_multihashmap_iterator_destroy (struct GNUNET_CONTAINER_MultiHashMapIterator *iter)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_iterator_next_value_ (struct GNUNET_CONTAINER_MultiHashMapIterator *iter, void *key, const void **value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_trampoline_ (void *cls, const void *key, void *value)
 
static struct GNUNET_CONTAINER_MultiHashMap * GNUNET_CONTAINER_multihashmap_create (unsigned int len, int do_not_copy_keys)
 
static struct GNUNET_CONTAINER_MultiHashMap * GNUNET_CONTAINER_multihashmap_create_unprotected (unsigned int len, int do_not_copy_keys)
 
static void * GNUNET_CONTAINER_multihashmap_get (const struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_contains (const struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_contains_value (const struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key, const void *value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_put (struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_remove (struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key, const void *value)
 
static int GNUNET_CONTAINER_multihashmap_remove_all (struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key)
 
static int GNUNET_CONTAINER_multihashmap_iterate (struct GNUNET_CONTAINER_MultiHashMap *map, GNUNET_CONTAINER_MultiHashMapIteratorCallback it, void *it_cls)
 
static int GNUNET_CONTAINER_multihashmap_get_multiple (struct GNUNET_CONTAINER_MultiHashMap *map, const struct GNUNET_HashCode *key, GNUNET_CONTAINER_MultiHashMapIteratorCallback it, void *it_cls)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_iterator_next (struct GNUNET_CONTAINER_MultiHashMapIterator *iter, struct GNUNET_HashCode *key, const void **value)
 
static void GNUNET_CONTAINER_multipeermap_destroy (struct GNUNET_CONTAINER_MultiPeerMap *map)
 
static unsigned int GNUNET_CONTAINER_multipeermap_size (const struct GNUNET_CONTAINER_MultiPeerMap *map)
 
static unsigned int GNUNET_CONTAINER_multipeermap_clear (struct GNUNET_CONTAINER_MultiPeerMap *map)
 
static struct GNUNET_CONTAINER_MultiPeerMapIterator * GNUNET_CONTAINER_multipeermap_iterator_create (const struct GNUNET_CONTAINER_MultiPeerMap *map)
 
static void GNUNET_CONTAINER_multipeermap_iterator_destroy (struct GNUNET_CONTAINER_MultiPeerMapIterator *iter)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_iterator_next_value_ (struct GNUNET_CONTAINER_MultiPeerMapIterator *iter, void *key, const void **value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_trampoline_ (void *cls, const void *key, void *value)
 
static struct GNUNET_CONTAINER_MultiPeerMap * GNUNET_CONTAINER_multipeermap_create (unsigned int len, int do_not_copy_keys)
 
static struct GNUNET_CONTAINER_MultiPeerMap * GNUNET_CONTAINER_multipeermap_create_unprotected (unsigned int len, int do_not_copy_keys)
 
static void * GNUNET_CONTAINER_multipeermap_get (const struct GNUNET_CONTAINER_MultiPeerMap *map, const struct GNUNET_PeerIdentity *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_contains (const struct GNUNET_CONTAINER_MultiPeerMap *map, const struct GNUNET_PeerIdentity *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_contains_value (const struct GNUNET_CONTAINER_MultiPeerMap *map, const struct GNUNET_PeerIdentity *key, const void *value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_put (struct GNUNET_CONTAINER_MultiPeerMap *map, const struct GNUNET_PeerIdentity *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_remove (struct GNUNET_CONTAINER_MultiPeerMap *map, const struct GNUNET_PeerIdentity *key, const void *value)
 
static int GNUNET_CONTAINER_multipeermap_remove_all (struct GNUNET_CONTAINER_MultiPeerMap *map, const struct GNUNET_PeerIdentity *key)
 
static int GNUNET_CONTAINER_multipeermap_iterate (struct GNUNET_CONTAINER_MultiPeerMap *map, GNUNET_CONTAINER_PeerMapIterator it, void *it_cls)
 
static int GNUNET_CONTAINER_multipeermap_get_multiple (struct GNUNET_CONTAINER_MultiPeerMap *map, const struct GNUNET_PeerIdentity *key, GNUNET_CONTAINER_PeerMapIterator it, void *it_cls)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_iterator_next (struct GNUNET_CONTAINER_MultiPeerMapIterator *iter, struct GNUNET_PeerIdentity *key, const void **value)
 
static void GNUNET_CONTAINER_multishortmap_destroy (struct GNUNET_CONTAINER_MultiShortmap *map)
 
static unsigned int GNUNET_CONTAINER_multishortmap_size (const struct GNUNET_CONTAINER_MultiShortmap *map)
 
static unsigned int GNUNET_CONTAINER_multishortmap_clear (struct GNUNET_CONTAINER_MultiShortmap *map)
 
static struct GNUNET_CONTAINER_MultiShortmapIterator * GNUNET_CONTAINER_multishortmap_iterator_create (const struct GNUNET_CONTAINER_MultiShortmap *map)
 
static void GNUNET_CONTAINER_multishortmap_iterator_destroy (struct GNUNET_CONTAINER_MultiShortmapIterator *iter)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_iterator_next_value_ (struct GNUNET_CONTAINER_MultiShortmapIterator *iter, void *key, const void **value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_trampoline_ (void *cls, const void *key, void *value)
 
static struct GNUNET_CONTAINER_MultiShortmap * GNUNET_CONTAINER_multishortmap_create (unsigned int len, int do_not_copy_keys)
 
static struct GNUNET_CONTAINER_MultiShortmap * GNUNET_CONTAINER_multishortmap_create_unprotected (unsigned int len, int do_not_copy_keys)
 
static void * GNUNET_CONTAINER_multishortmap_get (const struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_contains (const struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_contains_value (const struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key, const void *value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_put (struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_remove (struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key, const void *value)
 
static int GNUNET_CONTAINER_multishortmap_remove_all (struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key)
 
static int GNUNET_CONTAINER_multishortmap_iterate (struct GNUNET_CONTAINER_MultiShortmap *map, GNUNET_CONTAINER_ShortmapIterator it, void *it_cls)
 
static int GNUNET_CONTAINER_multishortmap_get_multiple (struct GNUNET_CONTAINER_MultiShortmap *map, const struct GNUNET_ShortHashCode *key, GNUNET_CONTAINER_ShortmapIterator it, void *it_cls)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_iterator_next (struct GNUNET_CONTAINER_MultiShortmapIterator *iter, struct GNUNET_ShortHashCode *key, const void **value)
 
static void GNUNET_CONTAINER_multiuuidmap_destroy (struct GNUNET_CONTAINER_MultiUuidmap *map)
 
static unsigned int GNUNET_CONTAINER_multiuuidmap_size (const struct GNUNET_CONTAINER_MultiUuidmap *map)
 
static unsigned int GNUNET_CONTAINER_multiuuidmap_clear (struct GNUNET_CONTAINER_MultiUuidmap *map)
 
static struct GNUNET_CONTAINER_MultiUuidmapIterator * GNUNET_CONTAINER_multiuuidmap_iterator_create (const struct GNUNET_CONTAINER_MultiUuidmap *map)
 
static void GNUNET_CONTAINER_multiuuidmap_iterator_destroy (struct GNUNET_CONTAINER_MultiUuidmapIterator *iter)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_iterator_next_value_ (struct GNUNET_CONTAINER_MultiUuidmapIterator *iter, void *key, const void **value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_trampoline_ (void *cls, const void *key, void *value)
 
static struct GNUNET_CONTAINER_MultiUuidmap * GNUNET_CONTAINER_multiuuidmap_create (unsigned int len, int do_not_copy_keys)
 
static struct GNUNET_CONTAINER_MultiUuidmap * GNUNET_CONTAINER_multiuuidmap_create_unprotected (unsigned int len, int do_not_copy_keys)
 
static void * GNUNET_CONTAINER_multiuuidmap_get (const struct GNUNET_CONTAINER_MultiUuidmap *map, const struct GNUNET_Uuid *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_contains (const struct GNUNET_CONTAINER_MultiUuidmap *map, const struct GNUNET_Uuid *key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_contains_value (const struct GNUNET_CONTAINER_MultiUuidmap *map, const struct GNUNET_Uuid *key, const void *value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_put (struct GNUNET_CONTAINER_MultiUuidmap *map, const struct GNUNET_Uuid *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_remove (struct GNUNET_CONTAINER_MultiUuidmap *map, const struct GNUNET_Uuid *key, const void *value)
 
static int GNUNET_CONTAINER_multiuuidmap_remove_all (struct GNUNET_CONTAINER_MultiUuidmap *map, const struct GNUNET_Uuid *key)
 
static int GNUNET_CONTAINER_multiuuidmap_iterate (struct GNUNET_CONTAINER_MultiUuidmap *map, GNUNET_CONTAINER_MultiUuidmapIteratorCallback it, void *it_cls)
 
static int GNUNET_CONTAINER_multiuuidmap_get_multiple (struct GNUNET_CONTAINER_MultiUuidmap *map, const struct GNUNET_Uuid *key, GNUNET_CONTAINER_MultiUuidmapIteratorCallback it, void *it_cls)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_iterator_next (struct GNUNET_CONTAINER_MultiUuidmapIterator *iter, struct GNUNET_Uuid *key, const void **value)
 
static void GNUNET_CONTAINER_multihashmap32_destroy (struct GNUNET_CONTAINER_MultiHashMap32 *map)
 
static unsigned int GNUNET_CONTAINER_multihashmap32_size (const struct GNUNET_CONTAINER_MultiHashMap32 *map)
 
static unsigned int GNUNET_CONTAINER_multihashmap32_clear (struct GNUNET_CONTAINER_MultiHashMap32 *map)
 
static struct GNUNET_CONTAINER_MultiHashMap32Iterator * GNUNET_CONTAINER_multihashmap32_iterator_create (const struct GNUNET_CONTAINER_MultiHashMap32 *map)
 
static void GNUNET_CONTAINER_multihashmap32_iterator_destroy (struct GNUNET_CONTAINER_MultiHashMap32Iterator *iter)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_iterator_next_value_ (struct GNUNET_CONTAINER_MultiHashMap32Iterator *iter, void *key, const void **value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_trampoline_ (void *cls, const void *key, void *value)
 
static struct GNUNET_CONTAINER_MultiHashMap32 * GNUNET_CONTAINER_multihashmap32_create (unsigned int len)
 
static struct GNUNET_CONTAINER_MultiHashMap32 * GNUNET_CONTAINER_multihashmap32_create_unprotected (unsigned int len)
 
static void * GNUNET_CONTAINER_multihashmap32_get (const struct GNUNET_CONTAINER_MultiHashMap32 *map, uint32_t key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_contains (const struct GNUNET_CONTAINER_MultiHashMap32 *map, uint32_t key)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_contains_value (const struct GNUNET_CONTAINER_MultiHashMap32 *map, uint32_t key, const void *value)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_put (struct GNUNET_CONTAINER_MultiHashMap32 *map, uint32_t key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_remove (struct GNUNET_CONTAINER_MultiHashMap32 *map, uint32_t key, const void *value)
 
static int GNUNET_CONTAINER_multihashmap32_remove_all (struct GNUNET_CONTAINER_MultiHashMap32 *map, uint32_t key)
 
static int GNUNET_CONTAINER_multihashmap32_iterate (struct GNUNET_CONTAINER_MultiHashMap32 *map, GNUNET_CONTAINER_MultiHashMapIterator32Callback it, void *it_cls)
 
static int GNUNET_CONTAINER_multihashmap32_get_multiple (struct GNUNET_CONTAINER_MultiHashMap32 *map, uint32_t key, GNUNET_CONTAINER_MultiHashMapIterator32Callback it, void *it_cls)
 
static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_iterator_next (struct GNUNET_CONTAINER_MultiHashMap32Iterator *iter, uint32_t *key, const void **value)
 

Detailed Description

Hash map with multiple values per key.

All hash maps in GNUnet share one implementation: a chained hash table for keys of a fixed size, chosen when the map is created, where the same key may be stored with several values.

See also
Documentation

How a key is stored depends on its size:

The map never frees or copies values; they are opaque pointers.

Maps are protected against hash flooding: the bucket of a key is chosen by SipHash under a random key of the map, so that whoever chooses keys (another peer, say) cannot make many of them land in the same bucket and turn lookups into linear scans. Where no one but the local peer chooses the keys and speed matters, a map can be created without that protection, see GNUNET_CONTAINER_MULTIMAP_FLAG_UNPROTECTED.

The implementation (the GNUNET_CONTAINER_multimap_*_() functions declared here) works on untyped keys and values. Code should not call it directly, but use typed wrappers instead, which GNUNET_CONTAINER_MULTIMAP_DEFINE_PTRKEY (for keys passed by pointer) and GNUNET_CONTAINER_MULTIMAP_DEFINE_VALKEY (for keys of up to 8 bytes passed by value, such as integers) generate as static inline functions. The classic maps #GNUNET_CONTAINER_MultiHashMap, #GNUNET_CONTAINER_MultiPeerMap, #GNUNET_CONTAINER_MultiShortmap, #GNUNET_CONTAINER_MultiUuidmap and #GNUNET_CONTAINER_MultiHashMap32 are defined that way at the end of this file, and an application can define its own maps the same way, for example to get a map whose values have a proper type instead of void *.

Iteration order is unspecified and changes as the map grows.

Macro Definition Documentation

◆ GNUNET_HASHMAP_LIB_H

#define GNUNET_HASHMAP_LIB_H

Definition at line 79 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE

#define GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE   1024

Largest key size (in bytes) a map supports.

Definition at line 138 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_MULTIMAP_CHECK_

#define GNUNET_CONTAINER_MULTIMAP_CHECK_ (   cond)     ((void) sizeof (char[(cond) ? 1 : -1]))

Fail to compile if cond is false.

Unlike GNUNET_static_assert, this is an expression, valid in C and C++.

Parameters
condinteger constant expression that must be true

Definition at line 441 of file gnunet_hashmap_lib.h.

442 : -1]))

◆ GNUNET_CONTAINER_MULTIMAP_DEFINE_COMMON_

#define GNUNET_CONTAINER_MULTIMAP_DEFINE_COMMON_ (   prefix,
  MapType,
  IterType,
  ValueType 
)

Wrappers that are the same whether the keys are passed by pointer or by value.

Used by GNUNET_CONTAINER_MULTIMAP_DEFINE_PTRKEY and GNUNET_CONTAINER_MULTIMAP_DEFINE_VALKEY.

Definition at line 454 of file gnunet_hashmap_lib.h.

461 { \
462 GNUNET_CONTAINER_multimap_destroy_ ( \
463 (struct GNUNET_CONTAINER_MultiMap *) map); \
464 } \
465 \
466 static inline GNUNET_UNUSED unsigned int \
467 prefix ## _size (const struct MapType *map) \
468 { \
470 (const struct GNUNET_CONTAINER_MultiMap *) map); \
471 } \
472 \
473 static inline GNUNET_UNUSED unsigned int \
474 prefix ## _clear (struct MapType *map) \
475 { \
477 (struct GNUNET_CONTAINER_MultiMap *) map); \
478 } \
479 \
480 static inline GNUNET_UNUSED struct IterType * \
481 prefix ## _iterator_create (const struct MapType *map) \
482 { \
483 return (struct IterType *) \
484 GNUNET_CONTAINER_multimap_iterator_create_ ( \
485 (const struct GNUNET_CONTAINER_MultiMap *) map); \
486 } \
487 \
488 static inline GNUNET_UNUSED void \
489 prefix ## _iterator_destroy (struct IterType *iter) \
490 { \
491 GNUNET_CONTAINER_multimap_iterator_destroy_ ( \
492 (struct GNUNET_CONTAINER_MultiMapIterator *) iter); \
493 } \
494 \
495 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
496 prefix ## _iterator_next_value_ (struct IterType *iter, \
497 void *key, \
498 const ValueType **value) \
499 { \
500 const void *v; \
502 \
504 (struct GNUNET_CONTAINER_MultiMapIterator *) iter, \
505 key, \
506 &v); \
507 if ((GNUNET_YES == ret) && (NULL != value)) \
508 { \
509 *value = (const ValueType *) v; \
510 } \
511 return ret; \
512 }
static int ret
Final status code.
Definition gnunet-arm.c:93
static int prefix
If printing the value of PREFIX has been requested.
struct GNUNET_HashCode key
The key used in the DHT.
static char * value
Value of the record to add/remove.
unsigned int GNUNET_CONTAINER_multimap_clear_(struct GNUNET_CONTAINER_MultiMap *map)
Remove all key-value pairs from a map.
unsigned int GNUNET_CONTAINER_multimap_size_(const struct GNUNET_CONTAINER_MultiMap *map)
Get the number of key-value pairs in a map.
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_iterator_next_(struct GNUNET_CONTAINER_MultiMapIterator *iter, void *key, const void **value)
Get the next key-value pair from an iterator.
#define GNUNET_UNUSED
gcc-ism to document unused arguments
GNUNET_GenericReturnValue
Named constants for return values.
@ GNUNET_YES
static struct GNUNET_CONTAINER_MultiPeerMap * map
Peermap of PeerIdentities to "struct PeerEntry" (for fast lookup).
Definition peer.c:63
Internal representation of a map.

◆ GNUNET_CONTAINER_MULTIMAP_DEFINE_PTRKEY

#define GNUNET_CONTAINER_MULTIMAP_DEFINE_PTRKEY (   prefix,
  MapType,
  IterType,
  CbType,
  KeyType,
  ValueType 
)

Define a hash map type whose keys are passed by pointer.

Declares struct MapType (the map), struct IterType (an iterator over it) and the callback type

typedef enum GNUNET_GenericReturnValue
(*CbType)(void *cls, const KeyType *key, ValueType *value);

and defines the following static inline functions:

  • struct MapType *prefix_create (unsigned int len, int do_not_copy_keys) creates a map with len buckets to start with (it grows as needed). If do_not_copy_keys is true and keys are longer than 8 bytes, the map only keeps a pointer to each key, which must then stay valid as long as the entry is in the map; see GNUNET_CONTAINER_MULTIMAP_FLAG_DO_NOT_COPY_KEYS. GNUNET_NO is always safe. Returns NULL on error.
  • struct MapType *prefix_create_unprotected (unsigned int len, int do_not_copy_keys) creates a map without protection against hash flooding; see GNUNET_CONTAINER_MULTIMAP_FLAG_UNPROTECTED for when that is acceptable.
  • void prefix_destroy (struct MapType *map); does not free the values.
  • unsigned int prefix_size (const struct MapType *map)
  • ValueType *prefix_get (const struct MapType *map, const KeyType *key) returns a value stored under key (which one, if there are several, is unspecified), or NULL.
  • enum GNUNET_GenericReturnValue prefix_contains (map, key) and prefix_contains_value (map, key, const ValueType *value) return GNUNET_YES or GNUNET_NO.
  • enum GNUNET_GenericReturnValue prefix_put (map, key, ValueType *value, enum GNUNET_CONTAINER_MultiHashMapOption opt); see GNUNET_CONTAINER_multimap_put_() for the return values.
  • enum GNUNET_GenericReturnValue prefix_remove (map, key, const ValueType *value) removes one key-value pair; returns GNUNET_YES if it was found, GNUNET_NO if not.
  • int prefix_remove_all (map, key) removes all values stored under key and returns how many there were.
  • unsigned int prefix_clear (struct MapType *map) removes all entries and returns how many there were.
  • int prefix_iterate (map, CbType it, void *it_cls) and int prefix_get_multiple (map, key, CbType it, void *it_cls) call it (which can be NULL) on every entry, or every entry with the given key, and return the number of entries visited, or GNUNET_SYSERR if it returned anything but GNUNET_OK. it may remove entries, including the current one. For prefix_get_multiple(), it gets the key pointer passed in; for prefix_iterate(), the key is only valid during the call, unless the map does not copy its keys.
  • struct IterType *prefix_iterator_create (const struct MapType *map), enum GNUNET_GenericReturnValue prefix_iterator_next ( struct IterType *iter, KeyType *key, const ValueType **value) (copies the next key-value pair to key and value, either of which can be NULL, and returns GNUNET_YES, or GNUNET_NO at the end) and void prefix_iterator_destroy (struct IterType *iter) iterate without callbacks. The map must not be modified destructively while an iterator is in use.

where map is a struct MapType * (const for the lookups) and key a const KeyType *. Callbacks go through a trampoline, so no function pointer is ever cast to an incompatible type.

Parameters
prefixprefix for the function names, e.g. GNUNET_CONTAINER_multihashmap
MapTypetag of the map struct (without struct)
IterTypetag of the iterator struct (without struct)
CbTypename to give the callback type
KeyTypetype of the keys (with struct if it is one); its size must not exceed GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE and its alignment must not exceed 8
ValueTypetype the values point to, void for untyped values

Definition at line 589 of file gnunet_hashmap_lib.h.

600 { \
601 CbType cb; \
602 void *cb_cls; \
603 }; \
604 \
605 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
606 prefix ## _trampoline_ (void *cls, \
607 const void *key, \
608 void *value) \
609 { \
610 const struct prefix ## _Trampoline_ *t = \
611 (const struct prefix ## _Trampoline_ *) cls; \
612 \
613 return t->cb (t->cb_cls, \
614 (const KeyType *) key, \
615 (ValueType *) value); \
616 } \
617 \
618 static inline GNUNET_UNUSED struct MapType * \
619 prefix ## _create (unsigned int len, \
620 int do_not_copy_keys) \
621 { \
622 GNUNET_CONTAINER_MULTIMAP_CHECK_ ( \
623 sizeof (KeyType) <= GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE); \
624 GNUNET_CONTAINER_MULTIMAP_CHECK_ (__alignof__ (KeyType) <= 8); \
625 return (struct MapType *) GNUNET_CONTAINER_multimap_create_ ( \
626 len, \
627 sizeof (KeyType), \
628 do_not_copy_keys \
631 } \
632 \
633 static inline GNUNET_UNUSED struct MapType * \
634 prefix ## _create_unprotected (unsigned int len, \
635 int do_not_copy_keys) \
636 { \
637 GNUNET_CONTAINER_MULTIMAP_CHECK_ ( \
638 sizeof (KeyType) <= GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE); \
639 GNUNET_CONTAINER_MULTIMAP_CHECK_ (__alignof__ (KeyType) <= 8); \
640 return (struct MapType *) GNUNET_CONTAINER_multimap_create_ ( \
641 len, \
642 sizeof (KeyType), \
645 | (do_not_copy_keys \
648 } \
649 \
650 static inline GNUNET_UNUSED ValueType * \
651 prefix ## _get (const struct MapType *map, \
652 const KeyType *key) \
653 { \
654 return (ValueType *) GNUNET_CONTAINER_multimap_get_ ( \
655 (const struct GNUNET_CONTAINER_MultiMap *) map, \
656 key); \
657 } \
658 \
659 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
660 prefix ## _contains (const struct MapType *map, \
661 const KeyType *key) \
662 { \
664 (const struct GNUNET_CONTAINER_MultiMap *) map, \
665 key); \
666 } \
667 \
668 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
669 prefix ## _contains_value (const struct MapType *map, \
670 const KeyType *key, \
671 const ValueType *value) \
672 { \
674 (const struct GNUNET_CONTAINER_MultiMap *) map, \
675 key, \
676 value); \
677 } \
678 \
679 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
680 prefix ## _put (struct MapType *map, \
681 const KeyType *key, \
682 ValueType *value, \
684 { \
686 (struct GNUNET_CONTAINER_MultiMap *) map, \
687 key, \
688 (void *) value, \
689 opt); \
690 } \
691 \
692 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
693 prefix ## _remove (struct MapType *map, \
694 const KeyType *key, \
695 const ValueType *value) \
696 { \
698 (struct GNUNET_CONTAINER_MultiMap *) map, \
699 key, \
700 value); \
701 } \
702 \
703 static inline GNUNET_UNUSED int \
704 prefix ## _remove_all (struct MapType *map, \
705 const KeyType *key) \
706 { \
708 (struct GNUNET_CONTAINER_MultiMap *) map, \
709 key); \
710 } \
711 \
712 static inline GNUNET_UNUSED int \
713 prefix ## _iterate (struct MapType *map, \
714 CbType it, \
715 void *it_cls) \
716 { \
717 struct prefix ## _Trampoline_ t; \
718 \
719 t.cb = it; \
720 t.cb_cls = it_cls; \
722 (struct GNUNET_CONTAINER_MultiMap *) map, \
723 (NULL == it) ? NULL : &prefix ## _trampoline_, \
724 &t); \
725 } \
726 \
727 static inline GNUNET_UNUSED int \
728 prefix ## _get_multiple (struct MapType *map, \
729 const KeyType *key, \
730 CbType it, \
731 void *it_cls) \
732 { \
733 struct prefix ## _Trampoline_ t; \
734 \
735 t.cb = it; \
736 t.cb_cls = it_cls; \
738 (struct GNUNET_CONTAINER_MultiMap *) map, \
739 key, \
740 (NULL == it) ? NULL : &prefix ## _trampoline_, \
741 &t); \
742 } \
743 \
744 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
745 prefix ## _iterator_next (struct IterType *iter, \
746 KeyType *key, \
747 const ValueType **value) \
748 { \
749 return prefix ## _iterator_next_value_ (iter, \
750 key, \
751 value); \
752 }
static struct GNUNET_SCHEDULER_Task * t
Main task.
int GNUNET_CONTAINER_multimap_iterate_(struct GNUNET_CONTAINER_MultiMap *map, GNUNET_CONTAINER_MultiMapIteratorCallback it, void *it_cls)
Call a function on every key-value pair of a map.
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_contains_(const struct GNUNET_CONTAINER_MultiMap *map, const void *key)
Check if the map has any value stored under a key.
GNUNET_CONTAINER_MultiHashMapOption
Options for storing values in the HashMap.
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_remove_(struct GNUNET_CONTAINER_MultiMap *map, const void *key, const void *value)
Remove a key-value pair from a map.
#define GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE
Largest key size (in bytes) a map supports.
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_put_(struct GNUNET_CONTAINER_MultiMap *map, const void *key, void *value, enum GNUNET_CONTAINER_MultiHashMapOption opt)
Store a key-value pair in a map.
void * GNUNET_CONTAINER_multimap_get_(const struct GNUNET_CONTAINER_MultiMap *map, const void *key)
Get a value stored under a key.
struct GNUNET_CONTAINER_MultiMap * GNUNET_CONTAINER_multimap_create_(unsigned int len, size_t key_size, enum GNUNET_CONTAINER_MultiMapFlags flags)
Create a map.
int GNUNET_CONTAINER_multimap_remove_all_(struct GNUNET_CONTAINER_MultiMap *map, const void *key)
Remove all values stored under a key from a map.
int GNUNET_CONTAINER_multimap_get_multiple_(struct GNUNET_CONTAINER_MultiMap *map, const void *key, GNUNET_CONTAINER_MultiMapIteratorCallback it, void *it_cls)
Call a function on every value stored under a key.
GNUNET_CONTAINER_MultiMapFlags
Flags for GNUNET_CONTAINER_multimap_create_().
enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_contains_value_(const struct GNUNET_CONTAINER_MultiMap *map, const void *key, const void *value)
Check if the map has a particular key-value pair.
@ GNUNET_CONTAINER_MULTIMAP_FLAG_NONE
Copy keys longer than 8 bytes into the map.
@ GNUNET_CONTAINER_MULTIMAP_FLAG_UNPROTECTED
Do not protect the map against hash flooding.
@ GNUNET_CONTAINER_MULTIMAP_FLAG_DO_NOT_COPY_KEYS
Do not copy keys longer than 8 bytes into the map, only keep a pointer to them.

◆ GNUNET_CONTAINER_MULTIMAP_DEFINE_VALKEY

#define GNUNET_CONTAINER_MULTIMAP_DEFINE_VALKEY (   prefix,
  MapType,
  IterType,
  CbType,
  KeyType,
  ValueType 
)

Define a hash map type whose keys are passed by value, for keys of up to 8 bytes such as integers.

Generates the same declarations and functions as GNUNET_CONTAINER_MULTIMAP_DEFINE_PTRKEY, except that

  • keys are passed as KeyType key instead of const KeyType *key, also to the callbacks, whose type is
    typedef enum GNUNET_GenericReturnValue
    (*CbType)(void *cls, KeyType key, ValueType *value);
    
  • prefix_iterator_next() still takes a KeyType * to store the key in, and
  • prefix_create (unsigned int len) and prefix_create_unprotected (unsigned int len) have no "do_not_copy_keys" argument, as keys of up to 8 bytes are always stored in the entry.
Parameters
prefixprefix for the function names, e.g. GNUNET_CONTAINER_multihashmap32
MapTypetag of the map struct (without struct)
IterTypetag of the iterator struct (without struct)
CbTypename to give the callback type
KeyTypetype of the keys, at most 8 bytes, such as uint32_t
ValueTypetype the values point to, void for untyped values

Definition at line 784 of file gnunet_hashmap_lib.h.

795 { \
796 CbType cb; \
797 void *cb_cls; \
798 }; \
799 \
800 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
801 prefix ## _trampoline_ (void *cls, \
802 const void *key, \
803 void *value) \
804 { \
805 const struct prefix ## _Trampoline_ *t = \
806 (const struct prefix ## _Trampoline_ *) cls; \
807 KeyType k; \
808 \
809 memcpy (&k, key, sizeof (k)); \
810 return t->cb (t->cb_cls, \
811 k, \
812 (ValueType *) value); \
813 } \
814 \
815 static inline GNUNET_UNUSED struct MapType * \
816 prefix ## _create (unsigned int len) \
817 { \
818 GNUNET_CONTAINER_MULTIMAP_CHECK_ (sizeof (KeyType) <= 8); \
819 return (struct MapType *) GNUNET_CONTAINER_multimap_create_ ( \
820 len, \
821 sizeof (KeyType), \
823 } \
824 \
825 static inline GNUNET_UNUSED struct MapType * \
826 prefix ## _create_unprotected (unsigned int len) \
827 { \
828 GNUNET_CONTAINER_MULTIMAP_CHECK_ (sizeof (KeyType) <= 8); \
829 return (struct MapType *) GNUNET_CONTAINER_multimap_create_ ( \
830 len, \
831 sizeof (KeyType), \
833 } \
834 \
835 static inline GNUNET_UNUSED ValueType * \
836 prefix ## _get (const struct MapType *map, \
837 KeyType key) \
838 { \
839 return (ValueType *) GNUNET_CONTAINER_multimap_get_ ( \
840 (const struct GNUNET_CONTAINER_MultiMap *) map, \
841 &key); \
842 } \
843 \
844 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
845 prefix ## _contains (const struct MapType *map, \
846 KeyType key) \
847 { \
849 (const struct GNUNET_CONTAINER_MultiMap *) map, \
850 &key); \
851 } \
852 \
853 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
854 prefix ## _contains_value (const struct MapType *map, \
855 KeyType key, \
856 const ValueType *value) \
857 { \
859 (const struct GNUNET_CONTAINER_MultiMap *) map, \
860 &key, \
861 value); \
862 } \
863 \
864 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
865 prefix ## _put (struct MapType *map, \
866 KeyType key, \
867 ValueType *value, \
869 { \
871 (struct GNUNET_CONTAINER_MultiMap *) map, \
872 &key, \
873 (void *) value, \
874 opt); \
875 } \
876 \
877 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
878 prefix ## _remove (struct MapType *map, \
879 KeyType key, \
880 const ValueType *value) \
881 { \
883 (struct GNUNET_CONTAINER_MultiMap *) map, \
884 &key, \
885 value); \
886 } \
887 \
888 static inline GNUNET_UNUSED int \
889 prefix ## _remove_all (struct MapType *map, \
890 KeyType key) \
891 { \
893 (struct GNUNET_CONTAINER_MultiMap *) map, \
894 &key); \
895 } \
896 \
897 static inline GNUNET_UNUSED int \
898 prefix ## _iterate (struct MapType *map, \
899 CbType it, \
900 void *it_cls) \
901 { \
902 struct prefix ## _Trampoline_ t; \
903 \
904 t.cb = it; \
905 t.cb_cls = it_cls; \
907 (struct GNUNET_CONTAINER_MultiMap *) map, \
908 (NULL == it) ? NULL : &prefix ## _trampoline_, \
909 &t); \
910 } \
911 \
912 static inline GNUNET_UNUSED int \
913 prefix ## _get_multiple (struct MapType *map, \
914 KeyType key, \
915 CbType it, \
916 void *it_cls) \
917 { \
918 struct prefix ## _Trampoline_ t; \
919 \
920 t.cb = it; \
921 t.cb_cls = it_cls; \
923 (struct GNUNET_CONTAINER_MultiMap *) map, \
924 &key, \
925 (NULL == it) ? NULL : &prefix ## _trampoline_, \
926 &t); \
927 } \
928 \
929 static inline GNUNET_UNUSED enum GNUNET_GenericReturnValue \
930 prefix ## _iterator_next (struct IterType *iter, \
931 KeyType *key, \
932 const ValueType **value) \
933 { \
934 return prefix ## _iterator_next_value_ (iter, \
935 key, \
936 value); \
937 }

Typedef Documentation

◆ GNUNET_CONTAINER_MultiMapIteratorCallback

typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiMapIteratorCallback) (void *cls, const void *key, void *value)

Iterator over the entries of a map with untyped keys and values.

Parameters
clsclosure
keythe key of the entry; only valid during the call, except that for maps that do not copy their keys this is the pointer that was given to the map with the entry
valuevalue of the entry
Returns
GNUNET_OK to continue iterating, anything else to stop

Definition at line 1 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_MultiHashMapIteratorCallback

typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiHashMapIteratorCallback) (void *cls, const struct GNUNET_HashCode *key, void *value)

Definition at line 959 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_PeerMapIterator

typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_PeerMapIterator) (void *cls, const struct GNUNET_PeerIdentity *key, void *value)

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_ShortmapIterator

typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_ShortmapIterator) (void *cls, const struct GNUNET_ShortHashCode *key, void *value)

Definition at line 991 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_MultiUuidmapIteratorCallback

typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiUuidmapIteratorCallback) (void *cls, const struct GNUNET_Uuid *key, void *value)

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_MultiHashMapIterator32Callback

typedef enum GNUNET_GenericReturnValue(* GNUNET_CONTAINER_MultiHashMapIterator32Callback) (void *cls, uint32_t key, void *value)

Definition at line 1023 of file gnunet_hashmap_lib.h.

Enumeration Type Documentation

◆ GNUNET_CONTAINER_MultiHashMapOption

Options for storing values in the HashMap.

Enumerator
GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE 

If a value with the given key exists, replace it.

Note that the old value would NOT be freed by replace (the application has to make sure that this happens if required).

GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE 

Allow multiple values with the same key.

GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY 

There must only be one value per key; storing a value should fail if a value under the same key already exists.

GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST 

, ' bother checking if a value already exists (faster than GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY; implemented just like GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE but this option documents better what is intended if GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY is what is desired).

Definition at line 96 of file gnunet_hashmap_lib.h.

97{
105
111
118
129};
@ GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST
, ' bother checking if a value already exists (faster than GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE...
@ GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE
Allow multiple values with the same key.
@ GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY
There must only be one value per key; storing a value should fail if a value under the same key alrea...
@ GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE
If a value with the given key exists, replace it.

◆ GNUNET_CONTAINER_MultiMapFlags

Flags for GNUNET_CONTAINER_multimap_create_().

Enumerator
GNUNET_CONTAINER_MULTIMAP_FLAG_NONE 

Copy keys longer than 8 bytes into the map.

GNUNET_CONTAINER_MULTIMAP_FLAG_DO_NOT_COPY_KEYS 

Do not copy keys longer than 8 bytes into the map, only keep a pointer to them.

The caller must guarantee that the key stays valid (and unchanged) as long as the entry is in the map. This saves memory, but is also a recipe for heap corruption if that guarantee does not hold. Ignored for keys of up to 8 bytes, which are always stored in the entry.

GNUNET_CONTAINER_MULTIMAP_FLAG_UNPROTECTED 

Do not protect the map against hash flooding.

The bucket of a key is then computed from its first 8 bytes only, without a secret, which makes lookups faster (perf_container_multimap shows by how much), but lets anyone who can choose keys put them all into one bucket. Only use this if no one but the local peer chooses the keys (keys from other peers or from clients do not qualify), if the first 8 bytes of the keys vary, and if speed matters; and say at the call where the keys come from.

Definition at line 145 of file gnunet_hashmap_lib.h.

Function Documentation

◆ GNUNET_CONTAINER_multimap_create_()

struct GNUNET_CONTAINER_MultiMap * GNUNET_CONTAINER_multimap_create_ ( unsigned int  len,
size_t  key_size,
enum GNUNET_CONTAINER_MultiMapFlags  flags 
)

Create a map.

Use the typed create function of a map instead.

Parameters
leninitial number of buckets; the map grows as needed
key_sizesize of the keys in bytes, from 1 to GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE
flagshow to store keys
Returns
NULL on error

Definition at line 540 of file container_multimap.c.

543{
545 unsigned int map_length;
546 unsigned int bits;
547
548 GNUNET_assert ( (key_size > 0) &&
551 bits = 1;
552 while ( (map_length < len) &&
554 {
555 map_length *= 2;
556 bits++;
557 }
559 map->buckets = allocate_buckets (map_length);
560 if (NULL == map->buckets)
561 {
563 "Out of memory allocating large hash map (%u entries)\n",
564 len);
566 return NULL;
567 }
568 map->map_length = map_length;
569 map->shift = 64 - bits;
570 map->key_size = key_size;
572 map->unprotected = true;
573 else
575 sizeof (map->sip_key));
576 if (key_size <= sizeof (uint64_t))
577 map->storage = KS_INLINE_VALUE;
579 map->storage = KS_BORROWED;
580 else
581 map->storage = KS_INLINE_COPY;
582 return map;
583}
#define MIN_MAP_LENGTH
Smallest number of buckets of a map.
#define MAX_MAP_LENGTH
Largest number of buckets of a map (a power of two).
@ KS_INLINE_VALUE
The key has at most 8 bytes.
@ KS_BORROWED
The key is longer than 8 bytes and was not copied: k.ptr points to memory that the application keeps ...
@ KS_INLINE_COPY
The key is longer than 8 bytes and was copied: the entry was allocated with key_size extra bytes for ...
static struct MapEntry ** allocate_buckets(unsigned int len)
Allocate a bucket array.
#define LOG(kind,...)
void GNUNET_CRYPTO_random_block(void *buffer, size_t length)
Fill block with a random values.
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
@ GNUNET_ERROR_TYPE_WARNING
#define GNUNET_new(type)
Allocate a struct or union of the given type.
#define GNUNET_free(ptr)
Wrapper around free.
size_t key_size
Size of the keys in bytes.
unsigned int map_length
Length of the buckets array, always a power of two.

References allocate_buckets(), GNUNET_assert, GNUNET_CONTAINER_MULTIMAP_FLAG_DO_NOT_COPY_KEYS, GNUNET_CONTAINER_MULTIMAP_FLAG_UNPROTECTED, GNUNET_CONTAINER_MULTIMAP_MAX_KEY_SIZE, GNUNET_CRYPTO_random_block(), GNUNET_ERROR_TYPE_WARNING, GNUNET_free, GNUNET_new, GNUNET_CONTAINER_MultiMap::key_size, KS_BORROWED, KS_INLINE_COPY, KS_INLINE_VALUE, LOG, map, GNUNET_CONTAINER_MultiMap::map_length, MAX_MAP_LENGTH, and MIN_MAP_LENGTH.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_destroy_()

void GNUNET_CONTAINER_multimap_destroy_ ( struct GNUNET_CONTAINER_MultiMap *  map)

Destroy a map.

Does not free the values. Must not be called while the map is being iterated over.

Parameters
[in]mapthe map to destroy

Definition at line 609 of file container_multimap.c.

610{
611 GNUNET_assert (0 == map->next_cache_off);
613 GNUNET_free (map->buckets);
615}
static void free_entries(struct GNUNET_CONTAINER_MultiMap *map)
Free all entries of a map, leaving its buckets empty.

References free_entries(), GNUNET_assert, GNUNET_free, and map.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_size_()

unsigned int GNUNET_CONTAINER_multimap_size_ ( const struct GNUNET_CONTAINER_MultiMap *  map)

Get the number of key-value pairs in a map.

Parameters
mapthe map
Returns
the number of key-value pairs

Definition at line 619 of file container_multimap.c.

620{
621 return map->size;
622}

References map.

◆ GNUNET_CONTAINER_multimap_get_()

void * GNUNET_CONTAINER_multimap_get_ ( const struct GNUNET_CONTAINER_MultiMap *  map,
const void *  key 
)

Get a value stored under a key.

If there are several, which one is returned is unspecified.

Parameters
mapthe map
keythe key to look for
Returns
the value, or NULL if the key is not in the map

Definition at line 626 of file container_multimap.c.

628{
629 uint64_t kw = lookup_word (map, key);
630
631 for (const struct MapEntry *e = map->buckets[bucket_of (map, key, kw)];
632 NULL != e;
633 e = e->next)
634 if (keys_equal (map, e, key, kw))
635 return e->value;
636 return NULL;
637}
static bool keys_equal(const struct GNUNET_CONTAINER_MultiMap *map, const struct MapEntry *e, const void *key, uint64_t kw)
Check if an entry has a key.
static uint64_t lookup_word(const struct GNUNET_CONTAINER_MultiMap *map, const void *key)
Prepare a key for looking it up in a map.
static unsigned int bucket_of(const struct GNUNET_CONTAINER_MultiMap *map, const void *key, uint64_t kw)
Compute the bucket for a key.
An entry in a map.
struct MapEntry * next
Next entry in the same bucket.

References bucket_of(), key, keys_equal(), lookup_word(), map, and MapEntry::next.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_contains_()

enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_contains_ ( const struct GNUNET_CONTAINER_MultiMap *  map,
const void *  key 
)

Check if the map has any value stored under a key.

Parameters
mapthe map
keythe key to look for
Returns
GNUNET_YES if so, GNUNET_NO if not

Definition at line 641 of file container_multimap.c.

644{
645 uint64_t kw = lookup_word (map, key);
646
647 for (const struct MapEntry *e = map->buckets[bucket_of (map, key, kw)];
648 NULL != e;
649 e = e->next)
650 if (keys_equal (map, e, key, kw))
651 return GNUNET_YES;
652 return GNUNET_NO;
653}
@ GNUNET_NO

References bucket_of(), GNUNET_NO, GNUNET_YES, key, keys_equal(), lookup_word(), map, and MapEntry::next.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_contains_value_()

enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_contains_value_ ( const struct GNUNET_CONTAINER_MultiMap *  map,
const void *  key,
const void *  value 
)

Check if the map has a particular key-value pair.

Parameters
mapthe map
keythe key to look for
valuethe value to look for
Returns
GNUNET_YES if so, GNUNET_NO if not

Definition at line 657 of file container_multimap.c.

661{
662 uint64_t kw = lookup_word (map, key);
663
664 for (const struct MapEntry *e = map->buckets[bucket_of (map, key, kw)];
665 NULL != e;
666 e = e->next)
667 if ( (value == e->value) &&
668 keys_equal (map, e, key, kw) )
669 return GNUNET_YES;
670 return GNUNET_NO;
671}

References bucket_of(), GNUNET_NO, GNUNET_YES, key, keys_equal(), lookup_word(), map, MapEntry::next, and value.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_put_()

enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_put_ ( struct GNUNET_CONTAINER_MultiMap *  map,
const void *  key,
void *  value,
enum GNUNET_CONTAINER_MultiHashMapOption  opt 
)

Store a key-value pair in a map.

Parameters
mapthe map
keythe key to use
valuethe value to store
optwhat to do if the key is already in the map
Returns
GNUNET_OK on success, GNUNET_NO if a value was replaced (with GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE), GNUNET_SYSERR if GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY was given and the key is already in the map

Definition at line 847 of file container_multimap.c.

851{
852 uint64_t kw = lookup_word (map, key);
853 unsigned int i;
854 struct MapEntry *e;
855
856 i = bucket_of (map, key, kw);
859 {
860 for (e = map->buckets[i]; NULL != e; e = e->next)
861 {
862 if (! keys_equal (map, e, key, kw))
863 continue;
865 return GNUNET_SYSERR;
866 e->value = value;
867 return GNUNET_NO;
868 }
869 }
870 if (map->size / 3 >= map->map_length / 4)
871 {
872 grow (map);
873 i = bucket_of (map, key, kw);
874 }
875 switch (map->storage)
876 {
877 case KS_INLINE_VALUE:
878 e = GNUNET_new (struct MapEntry);
879 e->k.u64 = kw;
880 break;
881 case KS_INLINE_COPY:
882 e = GNUNET_malloc (sizeof (struct MapEntry) + map->key_size);
883 memcpy (e->key_copy,
884 key,
885 map->key_size);
886 e->k.ptr = e->key_copy;
887 break;
888 case KS_BORROWED:
889 e = GNUNET_new (struct MapEntry);
890 e->k.ptr = key;
891 break;
892 default:
893 GNUNET_assert (0);
894 }
895 e->value = value;
896 e->next = map->buckets[i];
897 map->buckets[i] = e;
898 map->size++;
899 return GNUNET_OK;
900}
static void grow(struct GNUNET_CONTAINER_MultiMap *map)
Grow the given map to a more appropriate size.
@ GNUNET_OK
@ GNUNET_SYSERR
#define GNUNET_malloc(size)
Wrapper around malloc.
const void * ptr
KS_INLINE_COPY and KS_BORROWED: the key_size bytes of the key.
unsigned char key_copy[]
KS_INLINE_COPY only: the key; allocated with the entry.
union MapEntry::@43 k
The key itself (KS_INLINE_VALUE), or where to find it (the other kinds of storage).
void * value
The application's value.
uint64_t u64
KS_INLINE_VALUE: the key, zero-extended, for comparing.

References bucket_of(), GNUNET_assert, GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY, GNUNET_malloc, GNUNET_new, GNUNET_NO, GNUNET_OK, GNUNET_SYSERR, grow(), MapEntry::k, key, MapEntry::key_copy, keys_equal(), KS_BORROWED, KS_INLINE_COPY, KS_INLINE_VALUE, lookup_word(), map, MapEntry::next, MapEntry::ptr, MapEntry::u64, value, and MapEntry::value.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_remove_()

enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_remove_ ( struct GNUNET_CONTAINER_MultiMap *  map,
const void *  key,
const void *  value 
)

Remove a key-value pair from a map.

Parameters
mapthe map
keythe key of the pair
valuethe value of the pair
Returns
GNUNET_YES if the pair was removed, GNUNET_NO if it was not in the map

Definition at line 731 of file container_multimap.c.

734{
735 uint64_t kw = lookup_word (map, key);
736 struct MapEntry **pp;
737
738 map->modification_counter++;
739 for (pp = &map->buckets[bucket_of (map, key, kw)];
740 NULL != *pp;
741 pp = &(*pp)->next)
742 {
743 struct MapEntry *e = *pp;
744
745 if ( (value == e->value) &&
746 keys_equal (map, e, key, kw) )
747 {
748 *pp = e->next;
750 GNUNET_free (e);
751 map->size--;
752 return GNUNET_YES;
753 }
754 }
755 return GNUNET_NO;
756}
static void update_next_cache(struct GNUNET_CONTAINER_MultiMap *map, const struct MapEntry *e)
We are about to free() e, make sure it is not in the list of next values for any iteration in the map...

References bucket_of(), GNUNET_free, GNUNET_NO, GNUNET_YES, key, keys_equal(), lookup_word(), map, MapEntry::next, update_next_cache(), value, and MapEntry::value.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_remove_all_()

int GNUNET_CONTAINER_multimap_remove_all_ ( struct GNUNET_CONTAINER_MultiMap *  map,
const void *  key 
)

Remove all values stored under a key from a map.

Parameters
mapthe map
keythe key to remove
Returns
the number of values removed

Definition at line 760 of file container_multimap.c.

762{
763 uint64_t kw = lookup_word (map, key);
764 struct MapEntry **pp;
765 struct MapEntry *e;
766 int ret;
767
768 map->modification_counter++;
769 ret = 0;
770 pp = &map->buckets[bucket_of (map, key, kw)];
771 while (NULL != (e = *pp))
772 {
773 if (! keys_equal (map, e, key, kw))
774 {
775 pp = &e->next;
776 continue;
777 }
778 *pp = e->next;
780 GNUNET_free (e);
781 map->size--;
782 ret++;
783 }
784 return ret;
785}

References bucket_of(), GNUNET_free, key, keys_equal(), lookup_word(), map, MapEntry::next, ret, and update_next_cache().

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_clear_()

unsigned int GNUNET_CONTAINER_multimap_clear_ ( struct GNUNET_CONTAINER_MultiMap *  map)

Remove all key-value pairs from a map.

Does not free the values.

Parameters
mapthe map
Returns
the number of key-value pairs removed

Definition at line 789 of file container_multimap.c.

790{
791 unsigned int ret;
792
793 ret = map->size;
794 map->modification_counter++;
796 /* running iterations simply end: there is nothing left to visit */
797 for (unsigned int i = 0; i < map->next_cache_off; i++)
798 map->next_cache[i] = NULL;
799 return ret;
800}

References free_entries(), map, and ret.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_iterate_()

int GNUNET_CONTAINER_multimap_iterate_ ( struct GNUNET_CONTAINER_MultiMap *  map,
GNUNET_CONTAINER_MultiMapIteratorCallback  it,
void *  it_cls 
)

Call a function on every key-value pair of a map.

it may remove entries from the map, including the current one.

Parameters
mapthe map
itfunction to call on each entry, can be NULL
it_clsclosure for it
Returns
the number of entries visited, GNUNET_SYSERR if it aborted the iteration

Definition at line 675 of file container_multimap.c.

679{
680 uint64_t kc[KEY_WORDS (map->key_size)];
681 struct MapEntry **ce;
682 int count;
683
684 ce = &map->next_cache[map->next_cache_off];
685 GNUNET_assert (++map->next_cache_off < NEXT_CACHE_SIZE);
686 count = 0;
687 for (unsigned int i = 0; i < map->map_length; i++)
688 {
689 struct MapEntry *e;
690
691 *ce = map->buckets[i];
692 while (NULL != (e = *ce))
693 {
694 /* advance first: if 'it' removes the next entry,
695 update_next_cache() moves *ce past it */
696 *ce = e->next;
697 if ( (NULL != it) &&
698 (GNUNET_OK != it (it_cls,
699 callback_key (map, e, kc),
700 e->value)) )
701 {
702 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
703 return GNUNET_SYSERR;
704 }
705 count++;
706 }
707 }
708 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
709 return count;
710}
#define NEXT_CACHE_SIZE
Maximum recursion depth for callbacks of GNUNET_CONTAINER_multimap_get_multiple_() themselves again c...
#define KEY_WORDS(n)
Number of 64-bit words needed to hold a key of n bytes.
static const void * callback_key(const struct GNUNET_CONTAINER_MultiMap *map, const struct MapEntry *e, uint64_t *buf)
Get the key of an entry to give to a callback.

References callback_key(), GNUNET_assert, GNUNET_OK, GNUNET_SYSERR, KEY_WORDS, map, MapEntry::next, NEXT_CACHE_SIZE, and MapEntry::value.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_get_multiple_()

int GNUNET_CONTAINER_multimap_get_multiple_ ( struct GNUNET_CONTAINER_MultiMap *  map,
const void *  key,
GNUNET_CONTAINER_MultiMapIteratorCallback  it,
void *  it_cls 
)

Call a function on every value stored under a key.

it may remove entries from the map, including the current one, and may call this function again (up to a small nesting depth).

Parameters
mapthe map
keythe key to look for; it is called with this pointer
itfunction to call on each matching entry, can be NULL
it_clsclosure for it
Returns
the number of entries visited, GNUNET_SYSERR if it aborted the iteration

Definition at line 904 of file container_multimap.c.

909{
910 uint64_t kw = lookup_word (map, key);
911 struct MapEntry **ce;
912 struct MapEntry *e;
913 int count;
914
915 ce = &map->next_cache[map->next_cache_off];
916 GNUNET_assert (++map->next_cache_off < NEXT_CACHE_SIZE);
917 count = 0;
918 *ce = map->buckets[bucket_of (map, key, kw)];
919 while (NULL != (e = *ce))
920 {
921 *ce = e->next;
922 if (! keys_equal (map, e, key, kw))
923 continue;
924 if ( (NULL != it) &&
925 (GNUNET_OK != it (it_cls,
926 key,
927 e->value)) )
928 {
929 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
930 return GNUNET_SYSERR;
931 }
932 count++;
933 }
934 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
935 return count;
936}

References bucket_of(), GNUNET_assert, GNUNET_OK, GNUNET_SYSERR, key, keys_equal(), lookup_word(), map, MapEntry::next, NEXT_CACHE_SIZE, and MapEntry::value.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_iterator_create_()

struct GNUNET_CONTAINER_MultiMapIterator * GNUNET_CONTAINER_multimap_iterator_create_ ( const struct GNUNET_CONTAINER_MultiMap *  map)

Create an iterator over a map.

The map must not be modified destructively (by a removal, or by an insertion that makes it grow) while the iterator is in use.

Parameters
mapthe map to iterate over
Returns
a new iterator, to be destroyed with GNUNET_CONTAINER_multimap_iterator_destroy_()

Definition at line 940 of file container_multimap.c.

942{
944
946 iter->map = map;
947 iter->modification_counter = map->modification_counter;
948 iter->me = map->buckets[0];
949 return iter;
950}
const struct GNUNET_CONTAINER_MultiMap * map
Map that we are iterating over.
struct MapEntry * me
Position in the bucket idx.
unsigned int modification_counter
Modification counter as observed on the map when the iterator was created.

References GNUNET_new, GNUNET_CONTAINER_MultiMapIterator::map, map, GNUNET_CONTAINER_MultiMapIterator::me, and GNUNET_CONTAINER_MultiMapIterator::modification_counter.

◆ GNUNET_CONTAINER_multimap_iterator_next_()

enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multimap_iterator_next_ ( struct GNUNET_CONTAINER_MultiMapIterator *  iter,
void *  key,
const void **  value 
)

Get the next key-value pair from an iterator.

Parameters
iterthe iterator
[out]keyset to a copy of the key of the entry, can be NULL
[out]valueset to the value of the entry, can be NULL
Returns
GNUNET_YES if an entry was returned, GNUNET_NO if all entries have been visited

Definition at line 954 of file container_multimap.c.

958{
959 const struct GNUNET_CONTAINER_MultiMap *map = iter->map;
960
961 /* make sure the map has not been modified */
962 GNUNET_assert (iter->modification_counter == map->modification_counter);
963
964 /* look for the next entry, skipping empty buckets */
965 while (1)
966 {
967 if (iter->idx >= map->map_length)
968 return GNUNET_NO;
969 if (NULL != iter->me)
970 {
971 if (NULL != key)
972 memcpy (key,
973 entry_key (map, iter->me),
974 map->key_size);
975 if (NULL != value)
976 *value = iter->me->value;
977 iter->me = iter->me->next;
978 return GNUNET_YES;
979 }
980 iter->idx += 1;
981 if (iter->idx < map->map_length)
982 iter->me = map->buckets[iter->idx];
983 }
984}
static const void * entry_key(const struct GNUNET_CONTAINER_MultiMap *map, const struct MapEntry *e)
Get where the key of an entry is.
unsigned int idx
Current bucket index.

References entry_key(), GNUNET_assert, GNUNET_NO, GNUNET_YES, GNUNET_CONTAINER_MultiMapIterator::idx, key, GNUNET_CONTAINER_MultiMapIterator::map, map, GNUNET_CONTAINER_MultiMapIterator::me, GNUNET_CONTAINER_MultiMapIterator::modification_counter, MapEntry::next, value, and MapEntry::value.

Here is the call graph for this function:

◆ GNUNET_CONTAINER_multimap_iterator_destroy_()

void GNUNET_CONTAINER_multimap_iterator_destroy_ ( struct GNUNET_CONTAINER_MultiMapIterator *  iter)

Destroy an iterator.

Parameters
[in]iterthe iterator to destroy

Definition at line 988 of file container_multimap.c.

990{
991 GNUNET_free (iter);
992}

References GNUNET_free.

◆ GNUNET_CONTAINER_multihashmap_destroy()

static void GNUNET_CONTAINER_multihashmap_destroy ( struct GNUNET_CONTAINER_MultiHashMap *  map)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by __attribute__(), _GSS_operation_destroy(), _GSS_operation_destroy(), cancel_room_actions_by(), check_member_session_completion(), check_unique(), cleanup(), cleanup(), cleanup_handle(), clear_contact_store(), clear_message_store(), clear_operation_store(), client_disconnect_cb(), client_disconnect_cb(), client_disconnect_cb(), client_disconnect_cb(), close_all_files(), connection_destroy(), database_shutdown(), database_shutdown(), destroy_contact(), destroy_epoch(), destroy_epoch_announcement(), destroy_epoch_membership(), destroy_handle(), destroy_member(), destroy_member_session(), destroy_room(), destroy_service(), destroy_service_session(), destroy_service_session(), destroy_service_session(), destroy_service_session(), destroy_srv_handle(), destroy_srv_room(), DHTU_ip_done(), disconnect(), disconnect_cb(), do_shutdown(), do_shutdown(), do_shutdown(), do_shutdown(), do_shutdown(), do_shutdown(), do_shutdown(), fail_intersection_operation(), fail_intersection_operation(), finish_test(), free_download_context(), free_search_context(), free_update_information_graph(), GDS_ROUTING_done(), GNUNET_CADET_disconnect(), GNUNET_DHT_disconnect(), GNUNET_FS_download_signal_suspend_(), GNUNET_FS_download_stop(), GNUNET_FS_indexing_done(), GNUNET_FS_search_signal_suspend_(), GNUNET_FS_search_stop(), GNUNET_FS_share_tree_trim(), GNUNET_IDENTITY_disconnect(), GSF_peer_disconnect_handler(), GSF_pending_request_done_(), GSF_plan_notify_peer_disconnect_(), intersection_op_cancel(), is_epoch_member_in_room(), iterate_forward_members(), iterate_zones(), libgnunet_plugin_datacache_heap_done(), libgnunet_plugin_datastore_heap_done(), main(), print_finish(), REGEX_INTERNAL_iterate_reachable_edges(), REGEX_INTERNAL_search_cancel(), REST_openid_done(), search_start(), send_message_join(), shutdown_hook(), shutdown_rest(), shutdown_task(), stop_service_run(), and union_op_cancel().

◆ GNUNET_CONTAINER_multihashmap_size()

static unsigned int GNUNET_CONTAINER_multihashmap_size ( const struct GNUNET_CONTAINER_MultiHashMap *  map)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by __attribute__(), boot_queue(), boot_queue(), cb_intersection_element_removed(), cb_intersection_element_removed(), check_alices_cryptodata_message(), check_alices_cryptodata_message(), check_union_p2p_elements(), check_union_p2p_elements(), close_service_room(), close_srv_handle_room(), connection_destroy(), create_receiver(), create_target(), disconnect(), disconnect_cb(), entry_service_room(), free_validation_state(), GDS_CLIENTS_retry_requests(), GDS_ROUTING_done(), GNUNET_DHT_disconnect(), GSF_cadet_query_cancel(), handle_alices_cryptodata_message(), handle_alices_cryptodata_message(), handle_client_accept(), handle_client_iterate(), handle_client_redirect_to_ip(), handle_client_redirect_to_service(), handle_intersection_p2p_done(), handle_intersection_p2p_done(), handle_union_p2p_request_full(), handle_union_p2p_send_full(), handle_union_p2p_strata_estimator(), handle_validation_response(), initialize_key_to_element(), initialize_key_to_element(), iterate_zones(), maybe_finish(), maybe_finish(), mq_init(), mq_init(), open_service_room(), peer_destroy(), process_bf(), process_bf(), process_ksk_result(), queue_destroy(), queue_destroy(), receiver_destroy(), route_packet(), run(), run(), save_state(), schedule_transmit_search_request(), send_alices_cryptodata_message(), send_alices_cryptodata_message(), send_message_join(), sender_destroy(), setup_sender(), solve_srv_room_member_collisions(), switch_member_session(), transmit_cryptographic_reply(), traverse_epoch_message(), union_accept(), and validation_transmit_on_queue().

◆ GNUNET_CONTAINER_multihashmap_clear()

static unsigned int GNUNET_CONTAINER_multihashmap_clear ( struct GNUNET_CONTAINER_MultiHashMap *  map)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by handle_room_request_task(), reset_epoch_size(), and task_notify_srv_handle_member_id().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap_iterator_create()

static struct GNUNET_CONTAINER_MultiHashMapIterator * GNUNET_CONTAINER_multihashmap_iterator_create ( const struct GNUNET_CONTAINER_MultiHashMap *  map)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by apply_diff_to_rfn(), get_epoch_membership_member_hash(), get_epoch_membership_member_position(), handle_client_iterate(), handle_intersection_p2p_done(), handle_intersection_p2p_done(), process_bf(), process_bf(), propose_epoch_group(), task_start_apply_round(), task_start_eval_echo(), and task_start_grade().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap_iterator_destroy()

static void GNUNET_CONTAINER_multihashmap_iterator_destroy ( struct GNUNET_CONTAINER_MultiHashMapIterator *  iter)
inlinestatic

◆ GNUNET_CONTAINER_multihashmap_iterator_next_value_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_iterator_next_value_ ( struct GNUNET_CONTAINER_MultiHashMapIterator *  iter,
void *  key,
const void **  value 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap_trampoline_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_trampoline_ ( void *  cls,
const void *  key,
void *  value 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap_create()

static struct GNUNET_CONTAINER_MultiHashMap * GNUNET_CONTAINER_multihashmap_create ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by cancel_room_actions_by(), check_member_session_completion(), check_unique(), connection_init(), create_contact(), create_download_context(), create_epoch(), create_epoch_announcement(), create_epoch_membership(), create_handle(), create_member(), create_member_session(), create_response(), create_room(), create_service(), create_srv_handle(), create_srv_room(), database_setup(), database_setup(), deserialize_download(), deserialize_search(), DHTU_ip_init(), diff_create(), GDS_CLIENTS_init(), GDS_ROUTING_init(), get_cadet(), get_file_handle(), GNUNET_CADET_connect(), GNUNET_DHT_connect(), GNUNET_FS_indexing_init(), GNUNET_FS_namespace_list_updateable(), GNUNET_FS_search_start_searching_(), GNUNET_FS_share_tree_trim(), GNUNET_IDENTITY_connect(), GSF_peer_connect_handler(), GSF_pending_request_init_(), GSF_plan_add_(), handle_alice_client_message(), handle_alice_client_message(), handle_bob_client_message(), handle_bob_client_message(), handle_client_accept(), handle_client_accept(), handle_client_create_set(), handle_client_create_set(), handle_client_create_set(), handle_client_evaluate(), handle_client_evaluate(), handle_client_join(), handle_port_open(), init_contact_store(), init_message_store(), init_operation_store(), init_socket(), init_socket(), intersection_accept(), intersection_evaluate(), is_epoch_member_in_room(), iterate_forward_members(), libgnunet_plugin_datacache_heap_init(), libgnunet_plugin_datastore_heap_init(), mq_init(), REGEX_INTERNAL_iterate_reachable_edges(), REGEX_INTERNAL_search(), REST_openid_process_request(), rfn_create(), run(), run(), run(), run(), run(), run(), run(), run(), run(), run(), run(), run(), run(), run(), run(), search_start(), send_full_set(), send_message_join(), setup_is(), start_service_run(), switch_member_session(), union_accept(), and union_evaluate().

◆ GNUNET_CONTAINER_multihashmap_create_unprotected()

static struct GNUNET_CONTAINER_MultiHashMap * GNUNET_CONTAINER_multihashmap_create_unprotected ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap_get()

static void * GNUNET_CONTAINER_multihashmap_get ( const struct GNUNET_CONTAINER_MultiHashMap *  map,
const struct GNUNET_HashCode *  key 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by add_file(), add_to_keyword_counter(), add_to_meta_counter(), callback_room_message(), cancel_store_operation(), cb_intersection_element_removed(), cb_intersection_element_removed(), cb_intersection_element_removed(), cb_intersection_element_removed(), change_srv_handle_member_id(), check_and_remove_pending_reversal(), check_and_remove_pending_reversal(), check_member_session_history(), close_service_room(), code_redirect(), collector(), consume_fail(), consume_ticket(), cookie_identity_interpretation(), create_receiver(), create_response(), delete_store_message(), diff_insert(), ego_sign_data(), execute_add(), execute_remove(), find_port(), find_stream(), find_target(), GCCH_channel_incoming_new(), GCCH_channel_local_new(), get_contact_encryption_key(), get_file_handle(), get_gns_cont(), get_handle_contact(), get_handle_room(), get_member_session(), get_redirect_state(), get_room_epoch(), get_room_epoch_hash(), get_room_message(), get_room_message_epoch(), get_room_message_epoch_identifier(), get_room_recipient(), get_room_sender(), get_service_room(), get_srv_handle_member_id(), get_store_contact(), get_store_contact_raw(), get_store_message(), get_store_message_epoch(), get_store_message_link(), get_store_operation_type(), get_url_parameter_copy(), GNUNET_FS_add_to_index(), GNUNET_FS_handle_on_demand_block(), GNUNET_TESTING_interpreter_get_command(), handle_access_message(), handle_appeal_message(), handle_authorization_message(), handle_client_set_add(), handle_client_set_add(), handle_identity_update(), handle_port_close(), handle_room_delayed_action(), handle_room_delayed_appeal(), handle_room_delayed_deletion(), handle_room_message(), handle_transcript_message(), handle_union_p2p_demand(), handle_union_p2p_demand(), handle_union_p2p_offer(), handle_union_p2p_offer(), is_epoch_sender_in_room(), is_message_in_message_control_flow(), is_room_message_sent(), join_room_run(), login_cont(), lookup_diff(), lookup_rfn(), lookup_set(), lookup_task(), mark_as_reachable(), message_token(), mq_init(), mq_init(), mq_init(), mq_init(), namecache_lookup_block(), namestore_flat_lookup_records(), namestore_get(), notify_srv_handle_member_id(), ns_lookup_result_cb(), on_message_cb(), parse_credentials_basic_auth(), parse_credentials_post_body(), pending_reversal_timeout(), post_data_iter(), put_store_message(), queue_destroy(), queue_destroy(), remove_high_frequency_keywords(), remove_stream(), rfn_vote(), route_packet(), set_contact_encryption_key(), setup_sender(), sock_read(), sock_read(), token_endpoint(), traverse_epoch_session_message(), update_message_control_flow(), update_room_message(), update_room_secret_message(), use_store_operation(), and userinfo_endpoint().

◆ GNUNET_CONTAINER_multihashmap_contains()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_contains ( const struct GNUNET_CONTAINER_MultiHashMap *  map,
const struct GNUNET_HashCode *  key 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by allocate_v4_address(), allocate_v6_address(), build_authz_response(), callback_srv_room_message_signed(), cancel_room_action(), check_member_session_completion(), check_member_session_history(), code_redirect(), collector(), confirm_epoch_membership_announcment(), contains_store_message(), cookie_identity_interpretation(), delay_epoch_message_for_its_members(), ego_get_all(), ego_get_response(), ego_sign_data(), forward_about_members(), free_validation_state(), get_gns_cont(), get_url_parameter_copy(), handle_epoch_announcement_message(), handle_query_message(), handle_union_p2p_offer(), handle_union_p2p_offer(), handle_validation_response(), is_epoch_member_in_room_graph(), is_epoch_membership_member(), is_srv_handle_routing(), iterate_epoch_session_members(), iterate_save_epochs(), iterate_save_messages(), load_message_store_entries(), load_message_store_epochs(), load_message_store_links(), merge_srv_handle_room_to_sync(), mq_init(), mq_init(), namestore_get(), notify_about_members(), notify_srv_handle_message(), parse_credentials_basic_auth(), parse_credentials_post_body(), publicize_rm(), put_store_message(), put_store_message_epoch(), regex_found(), regex_next_edge(), revoke_epoch_membership_announcement(), run(), run(), send_epoch_announcement_access(), send_epoch_announcement_appeal(), set_contact_encryption_key(), sign_srv_room_message(), traverse_epoch_session_message(), userinfo_endpoint(), and validation_transmit_on_queue().

◆ GNUNET_CONTAINER_multihashmap_contains_value()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_contains_value ( const struct GNUNET_CONTAINER_MultiHashMap *  map,
const struct GNUNET_HashCode *  key,
const void *  value 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by plan(), and schedule_block_download().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap_put()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_put ( struct GNUNET_CONTAINER_MultiHashMap *  map,
const struct GNUNET_HashCode *  key,
void *  value,
enum GNUNET_CONTAINER_MultiHashMapOption  opt 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by add_link(), add_member_session(), add_to_keyword_counter(), add_to_meta_counter(), boot_queue(), boot_queue(), callback_scan_for_operations(), change_srv_handle_member_id(), check_member_session_completion(), check_unique(), collector(), confirm_epoch_membership_announcment(), create_handle_member_id(), create_randomized_element_iterator(), create_receiver(), create_stream(), database_setup(), database_setup(), decode_and_send(), delay_epoch_message_for_its_members(), delay_room_action(), deserialize_search_result(), dht_get_string_handler(), diff_insert(), entry_service_room(), execute_add(), filtered_map_initialization(), filtered_map_initialization(), find_target(), forward_about_members(), GCCH_channel_incoming_new(), GCCH_channel_local_new(), GDS_ROUTING_add(), get_file_handle(), get_handle_room(), get_room_epoch(), get_store_contact(), get_store_message(), GNUNET_CADET_open_port(), GNUNET_DHT_get_start(), GNUNET_FS_add_to_index(), GNUNET_FS_namespace_list_updateable(), GNUNET_TESTING_interpreter_run_cmd_(), GSF_pending_request_create_(), GSF_plan_add_(), handle_alice_client_message(), handle_alice_client_message(), handle_alice_client_message_multipart(), handle_alice_client_message_multipart(), handle_bob_client_message(), handle_bob_client_message(), handle_bob_client_message_multipart(), handle_bob_client_message_multipart(), handle_client_redirect_to_ip(), handle_client_redirect_to_service(), handle_client_set_add(), handle_client_set_add(), handle_dht_local_get(), handle_epoch_announcement_message(), handle_identity_update(), handle_p2p_get(), handle_port_open(), handle_room_message(), handle_transcript_message(), handle_union_p2p_inquiry(), handle_union_p2p_offer(), handle_union_p2p_offer(), handle_validation_response(), header_iterator(), heap_plugin_put(), heap_plugin_put(), init_socket(), init_socket(), initialize_map_unfiltered(), initialize_map_unfiltered(), is_epoch_member_in_room_graph(), it_update_epoch_member(), iterate_cancel_action_by(), iterate_copy_history(), iterate_epoch_session_members(), iterate_save_messages(), join_room_run(), link_room_message(), load_member_session_history(), load_message_store_entries(), load_message_store_epochs(), load_message_store_links(), load_state(), login_cont(), maint_child_death(), mq_init(), mq_init(), mq_init(), mq_init(), namecache_cache_block(), namestore_flat_store_records(), notify_about_members(), notify_srv_handle_member_id(), open_service_room(), open_srv_handle_room(), post_data_iter(), process_ksk_result(), process_sks_result(), publicize_rm(), put_diff(), put_rfn(), put_set(), put_store_message(), put_store_message_epoch(), put_task(), queue(), read_index_list(), regex_find_path(), regex_found(), REGEX_INTERNAL_search(), regex_next_edge(), register_hashcode(), register_hashcode(), require_message_from_room(), rfn_vote(), route_packet(), run(), run(), run(), schedule_block_download(), server_read_pkt(), set_contact_encryption_key(), setup_sender(), setup_state_record(), sign_srv_room_message(), sock_read(), store_all_states(), store_service(), sync_srv_handle_room(), token_endpoint(), transmit_pending(), traverse_epoch_session_message(), update_member_chain_history(), update_message_control_flow(), update_sre_result_maps(), update_store_contact(), url_iterator(), and use_store_operation().

◆ GNUNET_CONTAINER_multihashmap_remove()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_remove ( struct GNUNET_CONTAINER_MultiHashMap *  map,
const struct GNUNET_HashCode *  key,
const void *  value 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by add_file(), bind_loose_channel(), callback_srv_room_sign_result(), cancel_store_operation(), cb_intersection_element_removed(), cb_intersection_element_removed(), cb_intersection_element_removed(), cb_intersection_element_removed(), clean_channel(), clean_request(), client_release_ports(), close_handle_room(), close_service_room(), connection_destroy(), consume_fail(), consume_ticket(), create_target(), delete_linked_hash(), delete_store_message(), delete_value(), expire_oldest_entry(), filter_all(), filter_all(), free_channel_state(), free_destination_entry(), free_ego(), free_pending_request(), free_service_record(), free_validation_state(), get_store_message(), GNUNET_CADET_close_port(), GNUNET_DHT_get_stop(), GNUNET_FS_indexing_do_unindex(), GNUNET_FS_indexing_done(), GSC_drop_loose_channel(), GSF_cadet_query_cancel(), GSF_plan_notify_peer_disconnect_(), GSF_plan_notify_request_done_(), handle_identity_update(), handle_port_close(), handle_room_action_task(), handle_room_delayed_deletion(), handle_union_p2p_elements(), handle_union_p2p_elements(), heap_plugin_del(), it_update_epoch_member(), iterator_bf_reduce(), iterator_bf_reduce(), libgnunet_plugin_datacache_heap_done(), migrate_and_drop_keywords(), migrate_and_drop_metadata(), move_to_pending(), ns_lookup_result_cb(), peer_destroy(), pending_reversal_timeout(), pending_reversal_timeout(), pending_reversals_delete_it(), pending_reversals_delete_it(), process_result_with_request(), queue_destroy(), queue_destroy(), receiver_destroy(), reconstruct_cb(), remove_client_query_record(), remove_iterator(), remove_iterator(), remove_member_session(), remove_store_contact(), remove_stream(), revoke_epoch_membership_announcement(), sender_destroy(), setup_state_record(), update_store_contact(), and validation_transmit_on_queue().

◆ GNUNET_CONTAINER_multihashmap_remove_all()

static int GNUNET_CONTAINER_multihashmap_remove_all ( struct GNUNET_CONTAINER_MultiHashMap *  map,
const struct GNUNET_HashCode *  key 
)
inlinestatic

◆ GNUNET_CONTAINER_multihashmap_iterate()

static int GNUNET_CONTAINER_multihashmap_iterate ( struct GNUNET_CONTAINER_MultiHashMap *  map,
GNUNET_CONTAINER_MultiHashMapIteratorCallback  it,
void *  it_cls 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by _GSS_operation_destroy(), begin_bf_exchange(), begin_bf_exchange(), callback_mq_error(), callback_peer_id_changed(), callback_reconnect(), cancel_room_actions_by(), cb_key_sync(), cleanup(), cleanup(), cleanup_handle(), cleanup_store_discourse_messages_before(), clear_contact_store(), clear_message_store(), clear_operation_store(), client_disconnect_cb(), client_disconnect_cb(), client_disconnect_cb(), client_disconnect_cb(), close_all_files(), collect_generation_garbage(), confirm_epoch_membership_announcment(), connection_destroy(), database_shutdown(), database_shutdown(), destroy_contact(), destroy_handle(), destroy_member(), destroy_room(), destroy_service(), destroy_service_session(), destroy_service_session(), destroy_service_session(), destroy_service_session(), destroy_srv_handle(), destroy_srv_room(), disconnect_cb(), do_reconnect(), do_shutdown(), do_shutdown(), do_shutdown(), do_shutdown(), do_shutdown(), do_shutdown(), enc_notify_cb(), free_search_context(), GDS_CLIENTS_retry_requests(), get_member_session_of(), GNUNET_CADET_disconnect(), GNUNET_FS_search_continue(), GNUNET_FS_search_pause(), GNUNET_FS_search_signal_suspend_(), GNUNET_FS_search_start_searching_(), GNUNET_FS_search_stop(), GNUNET_IDENTITY_disconnect(), GNUNET_MESSENGER_find_rooms(), GSF_iterate_pending_requests_(), GSF_peer_disconnect_handler(), GSF_pending_request_done_(), handle_alices_cryptodata_message(), handle_client_accept(), handle_intersection_p2p_done(), handle_intersection_p2p_done(), handle_leave_message(), handle_room_request_task(), handle_secret_messages_with_key(), handle_union_p2p_request_full(), handle_union_p2p_send_full(), handle_union_p2p_strata_estimator(), handle_validation_response(), heap_get_keys(), heap_plugin_get_closest(), heap_plugin_get_key(), initialize_key_to_element(), initialize_key_to_element(), is_epoch_membership_member(), it_room_store_keys(), iterate_epoch_membership_members(), iterate_member_sessions(), iterate_zones(), libgnunet_plugin_datastore_heap_done(), load_member_next_sessions(), main(), maybe_finish(), namecache_expire_blocks(), namestore_flat_iterate_records(), namestore_flat_zone_to_name(), print_finish(), process_bf(), process_bf(), reconnect_cbk(), REGEX_INTERNAL_iterate_reachable_edges(), REGEX_INTERNAL_search_cancel(), reschedule_connect(), reset_cadet(), reset_epoch_size(), REST_openid_done(), run(), run(), save_member(), save_member_session_history(), save_message_store(), save_operation_store(), save_state(), schedule_transmit_search_request(), send_alices_cryptodata_message(), send_alices_cryptodata_message(), send_bloomfilter(), send_bloomfilter(), send_epoch_announcement_appeal(), send_full_set(), send_full_set(), set_handle_key(), share_tree_trim(), shutdown_task(), signal_search_resume(), stop_service_run(), switch_member_session(), sync_member_contacts(), task_notify_srv_handle_member_id(), transmit_cryptographic_reply(), try_handle_plaintext(), and try_reconnect().

◆ GNUNET_CONTAINER_multihashmap_get_multiple()

◆ GNUNET_CONTAINER_multihashmap_iterator_next()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap_iterator_next ( struct GNUNET_CONTAINER_MultiHashMapIterator *  iter,
struct GNUNET_HashCode *  key,
const void **  value 
)
inlinestatic

Definition at line 959 of file gnunet_hashmap_lib.h.

Referenced by apply_diff_to_rfn(), get_epoch_membership_member_hash(), get_epoch_membership_member_position(), propose_epoch_group(), send_client_element(), send_remaining_elements(), send_remaining_elements(), task_start_apply_round(), task_start_eval_echo(), and task_start_grade().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multipeermap_destroy()

◆ GNUNET_CONTAINER_multipeermap_size()

◆ GNUNET_CONTAINER_multipeermap_clear()

static unsigned int GNUNET_CONTAINER_multipeermap_clear ( struct GNUNET_CONTAINER_MultiPeerMap *  map)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multipeermap_iterator_create()

static struct GNUNET_CONTAINER_MultiPeerMapIterator * GNUNET_CONTAINER_multipeermap_iterator_create ( const struct GNUNET_CONTAINER_MultiPeerMap *  map)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multipeermap_iterator_destroy()

static void GNUNET_CONTAINER_multipeermap_iterator_destroy ( struct GNUNET_CONTAINER_MultiPeerMapIterator *  iter)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multipeermap_iterator_next_value_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_iterator_next_value_ ( struct GNUNET_CONTAINER_MultiPeerMapIterator *  iter,
void *  key,
const void **  value 
)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multipeermap_trampoline_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_trampoline_ ( void *  cls,
const void *  key,
void *  value 
)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multipeermap_create()

static struct GNUNET_CONTAINER_MultiPeerMap * GNUNET_CONTAINER_multipeermap_create ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

◆ GNUNET_CONTAINER_multipeermap_create_unprotected()

static struct GNUNET_CONTAINER_MultiPeerMap * GNUNET_CONTAINER_multipeermap_create_unprotected ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multipeermap_get()

◆ GNUNET_CONTAINER_multipeermap_contains()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_contains ( const struct GNUNET_CONTAINER_MultiPeerMap *  map,
const struct GNUNET_PeerIdentity *  key 
)
inlinestatic

◆ GNUNET_CONTAINER_multipeermap_contains_value()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_contains_value ( const struct GNUNET_CONTAINER_MultiPeerMap *  map,
const struct GNUNET_PeerIdentity *  key,
const void *  value 
)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multipeermap_put()

◆ GNUNET_CONTAINER_multipeermap_remove()

◆ GNUNET_CONTAINER_multipeermap_remove_all()

static int GNUNET_CONTAINER_multipeermap_remove_all ( struct GNUNET_CONTAINER_MultiPeerMap *  map,
const struct GNUNET_PeerIdentity *  key 
)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

Referenced by add_valid_peer(), core_disconnects(), CustomPeerMap_remove_peer(), destroy_peer(), GSC_CLIENTS_notify_client_about_neighbour(), View_clear(), and View_remove_peer().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multipeermap_iterate()

◆ GNUNET_CONTAINER_multipeermap_get_multiple()

static int GNUNET_CONTAINER_multipeermap_get_multiple ( struct GNUNET_CONTAINER_MultiPeerMap *  map,
const struct GNUNET_PeerIdentity *  key,
GNUNET_CONTAINER_PeerMapIterator  it,
void *  it_cls 
)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

Referenced by check_for_global_natted(), handle_add_queue_message(), handle_validation_response(), lookup_queue(), start_address_validation(), and try_to_bring_link_up().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multipeermap_iterator_next()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multipeermap_iterator_next ( struct GNUNET_CONTAINER_MultiPeerMapIterator *  iter,
struct GNUNET_PeerIdentity *  key,
const void **  value 
)
inlinestatic

Definition at line 975 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multishortmap_destroy()

static void GNUNET_CONTAINER_multishortmap_destroy ( struct GNUNET_CONTAINER_MultiShortmap *  map)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by clear_member_store(), clear_peer_store(), destroy_epoch(), destroy_member(), destroy_message_control(), destroy_peer(), destroy_room(), do_shutdown(), do_shutdown(), finish_test(), GCO_shutdown(), GNUNET_PQ_disconnect(), GNUNET_PQ_init(), and shutdown_rest().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multishortmap_size()

static unsigned int GNUNET_CONTAINER_multishortmap_size ( const struct GNUNET_CONTAINER_MultiShortmap *  map)
inlinestatic

◆ GNUNET_CONTAINER_multishortmap_clear()

static unsigned int GNUNET_CONTAINER_multishortmap_clear ( struct GNUNET_CONTAINER_MultiShortmap *  map)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multishortmap_iterator_create()

static struct GNUNET_CONTAINER_MultiShortmapIterator * GNUNET_CONTAINER_multishortmap_iterator_create ( const struct GNUNET_CONTAINER_MultiShortmap *  map)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by backchannel_check_run(), get_members_of_new_epoch(), is_epoch_member_in_any_group(), is_epoch_subgroup_of_any_group(), and propose_epoch_group().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multishortmap_iterator_destroy()

static void GNUNET_CONTAINER_multishortmap_iterator_destroy ( struct GNUNET_CONTAINER_MultiShortmapIterator *  iter)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by get_members_of_new_epoch(), is_epoch_member_in_any_group(), is_epoch_subgroup_of_any_group(), and propose_epoch_group().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multishortmap_iterator_next_value_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_iterator_next_value_ ( struct GNUNET_CONTAINER_MultiShortmapIterator *  iter,
void *  key,
const void **  value 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multishortmap_trampoline_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_trampoline_ ( void *  cls,
const void *  key,
void *  value 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multishortmap_create()

static struct GNUNET_CONTAINER_MultiShortmap * GNUNET_CONTAINER_multishortmap_create ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

◆ GNUNET_CONTAINER_multishortmap_create_unprotected()

static struct GNUNET_CONTAINER_MultiShortmap * GNUNET_CONTAINER_multishortmap_create_unprotected ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multishortmap_get()

static void * GNUNET_CONTAINER_multishortmap_get ( const struct GNUNET_CONTAINER_MultiShortmap *  map,
const struct GNUNET_ShortHashCode *  key 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by GCC_lookup(), get_member_subscription(), get_node_info(), get_route(), get_store_member(), GNUNET_PQ_event_listen(), GNUNET_PQ_event_listen_cancel(), GNUNET_TESTING_get_barrier2_(), handle_discourse_subscription(), and sock_read().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multishortmap_contains()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_contains ( const struct GNUNET_CONTAINER_MultiShortmap *  map,
const struct GNUNET_ShortHashCode *  key 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by generate_free_member_id(), handle_announcement_message(), and handle_revolution_message().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multishortmap_contains_value()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_contains_value ( const struct GNUNET_CONTAINER_MultiShortmap *  map,
const struct GNUNET_ShortHashCode *  key,
const void *  value 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by handle_join_message().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multishortmap_put()

◆ GNUNET_CONTAINER_multishortmap_remove()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_remove ( struct GNUNET_CONTAINER_MultiShortmap *  map,
const struct GNUNET_ShortHashCode *  key,
const void *  value 
)
inlinestatic

◆ GNUNET_CONTAINER_multishortmap_remove_all()

static int GNUNET_CONTAINER_multishortmap_remove_all ( struct GNUNET_CONTAINER_MultiShortmap *  map,
const struct GNUNET_ShortHashCode *  key 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multishortmap_iterate()

◆ GNUNET_CONTAINER_multishortmap_get_multiple()

static int GNUNET_CONTAINER_multishortmap_get_multiple ( struct GNUNET_CONTAINER_MultiShortmap *  map,
const struct GNUNET_ShortHashCode *  key,
GNUNET_CONTAINER_ShortmapIterator  it,
void *  it_cls 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by get_epoch_announcement(), get_epoch_group(), get_store_peer_of(), GNUNET_PQ_event_do_poll(), process_message_control(), and update_store_peer().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multishortmap_iterator_next()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multishortmap_iterator_next ( struct GNUNET_CONTAINER_MultiShortmapIterator *  iter,
struct GNUNET_ShortHashCode *  key,
const void **  value 
)
inlinestatic

Definition at line 991 of file gnunet_hashmap_lib.h.

Referenced by backchannel_check_run(), get_members_of_new_epoch(), is_epoch_member_in_any_group(), is_epoch_subgroup_of_any_group(), and propose_epoch_group().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multiuuidmap_destroy()

static void GNUNET_CONTAINER_multiuuidmap_destroy ( struct GNUNET_CONTAINER_MultiUuidmap *  map)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

Referenced by do_shutdown().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multiuuidmap_size()

static unsigned int GNUNET_CONTAINER_multiuuidmap_size ( const struct GNUNET_CONTAINER_MultiUuidmap *  map)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_clear()

static unsigned int GNUNET_CONTAINER_multiuuidmap_clear ( struct GNUNET_CONTAINER_MultiUuidmap *  map)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_iterator_create()

static struct GNUNET_CONTAINER_MultiUuidmapIterator * GNUNET_CONTAINER_multiuuidmap_iterator_create ( const struct GNUNET_CONTAINER_MultiUuidmap *  map)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_iterator_destroy()

static void GNUNET_CONTAINER_multiuuidmap_iterator_destroy ( struct GNUNET_CONTAINER_MultiUuidmapIterator *  iter)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_iterator_next_value_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_iterator_next_value_ ( struct GNUNET_CONTAINER_MultiUuidmapIterator *  iter,
void *  key,
const void **  value 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_trampoline_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_trampoline_ ( void *  cls,
const void *  key,
void *  value 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_create()

static struct GNUNET_CONTAINER_MultiUuidmap * GNUNET_CONTAINER_multiuuidmap_create ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

Referenced by run().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multiuuidmap_create_unprotected()

static struct GNUNET_CONTAINER_MultiUuidmap * GNUNET_CONTAINER_multiuuidmap_create_unprotected ( unsigned int  len,
int  do_not_copy_keys 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_get()

static void * GNUNET_CONTAINER_multiuuidmap_get ( const struct GNUNET_CONTAINER_MultiUuidmap *  map,
const struct GNUNET_Uuid *  key 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

Referenced by handle_reliability_ack().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multiuuidmap_contains()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_contains ( const struct GNUNET_CONTAINER_MultiUuidmap *  map,
const struct GNUNET_Uuid *  key 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_contains_value()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_contains_value ( const struct GNUNET_CONTAINER_MultiUuidmap *  map,
const struct GNUNET_Uuid *  key,
const void *  value 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_put()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_put ( struct GNUNET_CONTAINER_MultiUuidmap *  map,
const struct GNUNET_Uuid *  key,
void *  value,
enum GNUNET_CONTAINER_MultiHashMapOption  opt 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

Referenced by prepare_pending_acknowledgement().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multiuuidmap_remove()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_remove ( struct GNUNET_CONTAINER_MultiUuidmap *  map,
const struct GNUNET_Uuid *  key,
const void *  value 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

Referenced by free_pending_acknowledgement().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multiuuidmap_remove_all()

static int GNUNET_CONTAINER_multiuuidmap_remove_all ( struct GNUNET_CONTAINER_MultiUuidmap *  map,
const struct GNUNET_Uuid *  key 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_iterate()

static int GNUNET_CONTAINER_multiuuidmap_iterate ( struct GNUNET_CONTAINER_MultiUuidmap *  map,
GNUNET_CONTAINER_MultiUuidmapIteratorCallback  it,
void *  it_cls 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

Referenced by do_shutdown().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multiuuidmap_get_multiple()

static int GNUNET_CONTAINER_multiuuidmap_get_multiple ( struct GNUNET_CONTAINER_MultiUuidmap *  map,
const struct GNUNET_Uuid *  key,
GNUNET_CONTAINER_MultiUuidmapIteratorCallback  it,
void *  it_cls 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multiuuidmap_iterator_next()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multiuuidmap_iterator_next ( struct GNUNET_CONTAINER_MultiUuidmapIterator *  iter,
struct GNUNET_Uuid *  key,
const void **  value 
)
inlinestatic

Definition at line 1007 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_destroy()

static void GNUNET_CONTAINER_multihashmap32_destroy ( struct GNUNET_CONTAINER_MultiHashMap32 *  map)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by _GSS_operation_destroy(), client_disconnect_cb(), CustomPeerMap_destroy(), destroy_tunnel(), free_virtual_link(), GNUNET_CADET_disconnect(), GNUNET_MQ_destroy(), and union_op_cancel().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_size()

static unsigned int GNUNET_CONTAINER_multihashmap32_size ( const struct GNUNET_CONTAINER_MultiHashMap32 *  map)
inlinestatic

◆ GNUNET_CONTAINER_multihashmap32_clear()

static unsigned int GNUNET_CONTAINER_multihashmap32_clear ( struct GNUNET_CONTAINER_MultiHashMap32 *  map)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_iterator_create()

static struct GNUNET_CONTAINER_MultiHashMap32Iterator * GNUNET_CONTAINER_multihashmap32_iterator_create ( const struct GNUNET_CONTAINER_MultiHashMap32 *  map)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_iterator_destroy()

static void GNUNET_CONTAINER_multihashmap32_iterator_destroy ( struct GNUNET_CONTAINER_MultiHashMap32Iterator *  iter)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_iterator_next_value_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_iterator_next_value_ ( struct GNUNET_CONTAINER_MultiHashMap32Iterator *  iter,
void *  key,
const void **  value 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_trampoline_()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_trampoline_ ( void *  cls,
const void *  key,
void *  value 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_create()

static struct GNUNET_CONTAINER_MultiHashMap32 * GNUNET_CONTAINER_multihashmap32_create ( unsigned int  len)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by client_connect_cb(), CustomPeerMap_create(), GCT_create_tunnel(), GNUNET_CADET_connect(), GNUNET_MQ_assoc_add(), handle_fragment_box(), initialize_key_to_element(), and initialize_key_to_element().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_create_unprotected()

static struct GNUNET_CONTAINER_MultiHashMap32 * GNUNET_CONTAINER_multihashmap32_create_unprotected ( unsigned int  len)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_get()

static void * GNUNET_CONTAINER_multihashmap32_get ( const struct GNUNET_CONTAINER_MultiHashMap32 *  map,
uint32_t  key 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by CustomPeerMap_get_peer_by_index(), CustomPeerMap_remove_peer(), find_channel(), get_next_free_ctn(), GNUNET_MQ_assoc_get(), GNUNET_MQ_assoc_remove(), handle_plaintext_channel_open(), lookup_channel(), and lookup_channel().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_contains()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_contains ( const struct GNUNET_CONTAINER_MultiHashMap32 *  map,
uint32_t  key 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by CustomPeerMap_clear(), CustomPeerMap_get_peer_by_index(), and CustomPeerMap_remove_peer_by_index().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_contains_value()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_contains_value ( const struct GNUNET_CONTAINER_MultiHashMap32 *  map,
uint32_t  key,
const void *  value 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

◆ GNUNET_CONTAINER_multihashmap32_put()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_put ( struct GNUNET_CONTAINER_MultiHashMap32 *  map,
uint32_t  key,
void *  value,
enum GNUNET_CONTAINER_MultiHashMapOption  opt 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by create_channel(), CustomPeerMap_put(), CustomPeerMap_remove_peer(), GCT_add_channel(), GNUNET_MQ_assoc_add(), GSC_bind(), handle_channel_create(), handle_fragment_box(), handle_plaintext_channel_open(), op_register_element(), and op_register_element().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_remove()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_remove ( struct GNUNET_CONTAINER_MultiHashMap32 *  map,
uint32_t  key,
const void *  value 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by channel_destroy_iterator(), destroy_channel(), free_reassembly_context(), GCT_remove_channel(), GSC_handle_remote_channel_destroy(), and handle_channel_destroy().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_remove_all()

static int GNUNET_CONTAINER_multihashmap32_remove_all ( struct GNUNET_CONTAINER_MultiHashMap32 *  map,
uint32_t  key 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by CustomPeerMap_remove_peer(), and GNUNET_MQ_assoc_remove().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_iterate()

static int GNUNET_CONTAINER_multihashmap32_iterate ( struct GNUNET_CONTAINER_MultiHashMap32 *  map,
GNUNET_CONTAINER_MultiHashMapIterator32Callback  it,
void *  it_cls 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by _GSS_operation_destroy(), client_disconnect_cb(), free_virtual_link(), GCT_change_estate(), GCT_debug(), GCT_destroy_tunnel_now(), GCT_iterate_channels(), GNUNET_CADET_disconnect(), handle_mq_error(), handle_union_p2p_full_done(), handle_union_p2p_full_done(), prepare_ibf(), prepare_ibf(), and union_op_cancel().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_get_multiple()

static int GNUNET_CONTAINER_multihashmap32_get_multiple ( struct GNUNET_CONTAINER_MultiHashMap32 *  map,
uint32_t  key,
GNUNET_CONTAINER_MultiHashMapIterator32Callback  it,
void *  it_cls 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.

Referenced by handle_fragment_box(), op_get_element(), op_get_element(), send_offers_for_key(), and send_offers_for_key().

Here is the caller graph for this function:

◆ GNUNET_CONTAINER_multihashmap32_iterator_next()

static enum GNUNET_GenericReturnValue GNUNET_CONTAINER_multihashmap32_iterator_next ( struct GNUNET_CONTAINER_MultiHashMap32Iterator *  iter,
uint32_t *  key,
const void **  value 
)
inlinestatic

Definition at line 1023 of file gnunet_hashmap_lib.h.