Go to the documentation of this file.
26 #include <glib/ghash.h>
27 #include <glib/glist.h>
30 #define map_guint_new() \
31 g_hash_table_new(g_direct_hash, g_direct_equal)
34 #define map_guint_new_full(valfree) \
35 g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, (valfree))
38 #define map_guint_insert(ht, key, val) \
39 g_hash_table_insert((ht), GUINT_TO_POINTER((guint)(key)), (val))
42 #define map_guint_replace(ht, key, val) \
43 g_hash_table_replace((ht), GUINT_TO_POINTER((guint)(key)), (val))
46 #define map_guint_lookup(ht, key) \
47 g_hash_table_lookup((ht), GUINT_TO_POINTER((guint)(key)))
50 #define map_guint_remove(ht, key) \
51 g_hash_table_remove((ht), GUINT_TO_POINTER((guint)(key)))
54 #define map_guint_steal(ht, key) \
55 g_hash_table_steal((ht), GUINT_TO_POINTER((guint)(key)))