diff options
author | Freya Murphy <freya@freyacat.org> | 2023-12-17 11:10:04 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2023-12-17 11:10:04 -0500 |
commit | e0eacfa9773c83850ed5169d1e889ff845180581 (patch) | |
tree | 9f8bb433404ce7e4dda1b86ca4dd5d5a2fba10e9 /lib/map.h | |
parent | snbt (diff) | |
download | nbtvis-e0eacfa9773c83850ed5169d1e889ff845180581.tar.gz nbtvis-e0eacfa9773c83850ed5169d1e889ff845180581.tar.bz2 nbtvis-e0eacfa9773c83850ed5169d1e889ff845180581.zip |
Diffstat (limited to 'lib/map.h')
-rw-r--r-- | lib/map.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/map.h b/lib/map.h new file mode 100644 index 0000000..d2ab6f8 --- /dev/null +++ b/lib/map.h @@ -0,0 +1,15 @@ +#pragma once + +#include <stdint.h> + +struct tag_t; + +typedef struct { + uint32_t len; + uint32_t capacity; + struct tag_t *entries; +} map_t; + +void map_init(map_t *map); +void map_free(map_t *map); +void map_put(map_t *map, struct tag_t *tag); |