summaryrefslogtreecommitdiff
path: root/include/ouroboros/bitmap.h
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-09 16:53:46 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-09 16:56:12 +0100
commita480c3510f98c491879d42ff7106287f07d03e2f (patch)
tree71b6cb69e976e8fc2e316b5a480283bdb9109203 /include/ouroboros/bitmap.h
parent53ba33ab98208a447a1c4201f958d02a184182a9 (diff)
downloadouroboros-a480c3510f98c491879d42ff7106287f07d03e2f.tar.gz
ouroboros-a480c3510f98c491879d42ff7106287f07d03e2f.zip
lib: Add bitmap test
This adds a test for the bitmap. During the testing I also removed some bugs that were present in the bitmap implementation.
Diffstat (limited to 'include/ouroboros/bitmap.h')
-rw-r--r--include/ouroboros/bitmap.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/ouroboros/bitmap.h b/include/ouroboros/bitmap.h
index 6296e2e0..c109f3e8 100644
--- a/include/ouroboros/bitmap.h
+++ b/include/ouroboros/bitmap.h
@@ -1,7 +1,7 @@
/*
* Ouroboros - Copyright (C) 2016
*
- * RINA bitmap implementation - wraps around bitmap from Linux kernel
+ * Bitmap implementation
*
* Sander Vrijders <sander.vrijders@intec.ugent.be>
* Francesco Salvestrini <f.salvestrini@nextworks.it>
@@ -28,14 +28,14 @@
#include <unistd.h>
#include <stdbool.h>
-struct rbmp;
+struct bmp;
-struct rbmp * rbmp_create(size_t bits, ssize_t offset);
-int rbmp_destroy(struct rbmp * b);
+struct bmp * bmp_create(size_t bits, ssize_t offset);
+int bmp_destroy(struct bmp * b);
-ssize_t rbmp_allocate(struct rbmp * instance);
-int rbmp_release(struct rbmp * instance,
- ssize_t id);
-bool rbmp_is_id_ok(struct rbmp * b, ssize_t id);
+ssize_t bmp_allocate(struct bmp * instance);
+int bmp_release(struct bmp * instance,
+ ssize_t id);
+bool bmp_is_id_valid(struct bmp * b, ssize_t id);
#endif