diff options
author | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2025-05-20 11:31:50 +0200 |
---|---|---|
committer | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2025-05-20 11:31:50 +0200 |
commit | 9cf524df8c94920d7c7058692f2f83a95a4006e0 (patch) | |
tree | 526853cc7f935745bf703cbfaf7e5ebe7d32017e /include/hash_map.h | |
parent | 3829a704150a06b2767d542b39179377a592da0f (diff) | |
download | imp-9cf524df8c94920d7c7058692f2f83a95a4006e0.tar.gz imp-9cf524df8c94920d7c7058692f2f83a95a4006e0.zip |
hashmap for context
Diffstat (limited to 'include/hash_map.h')
-rw-r--r-- | include/hash_map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hash_map.h b/include/hash_map.h index ad873f8..6bc733f 100644 --- a/include/hash_map.h +++ b/include/hash_map.h @@ -1,12 +1,13 @@ #ifndef HASH_MAP_H #define HASH_MAP_H -typedef void *hashmap_t; +typedef struct HashMap *hashmap_t; hashmap_t hashmap_create(void); void hashmap_insert(hashmap_t map, const char *key, int value); int *hashmap_get(hashmap_t map, const char *key); void hashmap_delete(hashmap_t map, const char *key); void hashmap_free(hashmap_t map); +void hashmap_iterate(hashmap_t map, void (*callback)(const char *key, int value)); #endif
\ No newline at end of file |