27 #define map_guint_new() \ 28 g_hash_table_new(g_direct_hash, g_direct_equal) 31 #define map_guint_new_full(valfree) \ 32 g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, (valfree)) 35 #define map_guint_insert(ht, key, val) \ 36 g_hash_table_insert((ht), GUINT_TO_POINTER((guint)(key)), (val)) 39 #define map_guint_replace(ht, key, val) \ 40 g_hash_table_replace((ht), GUINT_TO_POINTER((guint)(key)), (val)) 43 #define map_guint_lookup(ht, key) \ 44 g_hash_table_lookup((ht), GUINT_TO_POINTER((guint)(key))) 47 #define map_guint_remove(ht, key) \ 48 g_hash_table_remove((ht), GUINT_TO_POINTER((guint)(key))) 51 #define map_guint_steal(ht, key) \ 52 g_hash_table_steal((ht), GUINT_TO_POINTER((guint)(key))) mwService_funcClear clear
The service's cleanup handler.
Definition: mw_service.h:195
gpointer mw_datum_get(struct mw_datum *d)
GDestroyNotify clear
Definition: mw_util.h:63
void mw_datum_set(struct mw_datum *d, gpointer data, GDestroyNotify clear)
void mw_datum_free(struct mw_datum *d)
GList * map_collect_keys(GHashTable *ht)
struct mw_datum * mw_datum_new(gpointer data, GDestroyNotify clear)
void mw_datum_clear(struct mw_datum *d)
GList * map_collect_values(GHashTable *ht)
gpointer data
Definition: mw_util.h:62