diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-01 13:44:41 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-01 14:28:59 +0200 |
commit | 47b6ff3333fb3fcc3f5f76459c356c79e4bb111c (patch) | |
tree | 1d5dd8953fe1aee857335b7dcd1ca4e7e4c61d55 /include | |
parent | 67fcb9107ae73fd1a4ccb30e4922f0dee0bd29a5 (diff) | |
download | ouroboros-47b6ff3333fb3fcc3f5f76459c356c79e4bb111c.tar.gz ouroboros-47b6ff3333fb3fcc3f5f76459c356c79e4bb111c.zip |
lib: Add a check if a bitmap ID is in use
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/bitmap.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ouroboros/bitmap.h b/include/ouroboros/bitmap.h index cb62312a..d6bb250b 100644 --- a/include/ouroboros/bitmap.h +++ b/include/ouroboros/bitmap.h @@ -33,7 +33,7 @@ struct bmp; struct bmp * bmp_create(size_t bits, ssize_t offset); -int bmp_destroy(struct bmp * b); +void bmp_destroy(struct bmp * b); ssize_t bmp_allocate(struct bmp * instance); @@ -43,4 +43,7 @@ int bmp_release(struct bmp * instance, bool bmp_is_id_valid(struct bmp * b, ssize_t id); +bool bmp_is_id_used(struct bmp * b, + ssize_t id); + #endif /* OUROBOROS_BITMAP_H */ |