diff options
Diffstat (limited to 'inc/map.h')
-rw-r--r-- | inc/map.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/map.h b/inc/map.h new file mode 100644 index 0000000..84d1ae5 --- /dev/null +++ b/inc/map.h @@ -0,0 +1,16 @@ +// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de> +// SPDX-License-Identifier: MIT + +#ifndef SHARING_MAP_H +#define SHARING_MAP_H + +#include <lib/hash.h> + +struct term *map_get(hash_t hash); +void map_set(struct term *term, hash_t hash); +void map_delete(struct term *term); +void map_initialize(void); +void map_destroy(void); +void map_foreach(void (*func)(struct term *)); + +#endif |