#ifndef JEFF_BITMAP_H #define JEFF_BITMAP_H #include /* bitmap.c */ struct jeff_bmap { uint64_t size; uint64_t mapsize; int chunksize; int chunks_per_byte; char *map; }; int jeff_bitmap_create(struct jeff_bmap *bmap, uint64_t size, uint8_t bitsize); int jeff_bitmap_set(struct jeff_bmap *bmap, uint64_t offset, uint8_t val); int jeff_bitmap_get(struct jeff_bmap *bmap, uint64_t bit, uint8_t *val); int jeff_bitmap_clear(struct jeff_bmap *bmap, uint64_t offset); void jeff_bitmap_destroy(struct jeff_bmap *bmap); uint64_t jeff_bitmap_size(struct jeff_bmap *bmap); #endif /* JEFF_BITMAP_H */