summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-10-30 22:43:21 +0100
committerMichael Adam <obnox@samba.org>2012-11-07 15:32:24 +0100
commit7f4d55d1b8bda4f0d7a8bdbfe82c9a623dfe5843 (patch)
treebcd1b160250f8de83f9691dd2c1c9462a6e0462b
parentda284b3765e3c73d204fe2c8b45d6fbd2c08d451 (diff)
downloadsamba-7f4d55d1b8bda4f0d7a8bdbfe82c9a623dfe5843.tar.gz
samba-7f4d55d1b8bda4f0d7a8bdbfe82c9a623dfe5843.tar.bz2
samba-7f4d55d1b8bda4f0d7a8bdbfe82c9a623dfe5843.zip
lib/util: Make "struct bitmap" abstract
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--lib/util/bitmap.c5
-rw-r--r--lib/util/bitmap.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/util/bitmap.c b/lib/util/bitmap.c
index 7defd77840..1ae2aaaf71 100644
--- a/lib/util/bitmap.c
+++ b/lib/util/bitmap.c
@@ -20,6 +20,11 @@
#include "includes.h"
#include "lib/util/bitmap.h"
+struct bitmap {
+ uint32_t *b;
+ unsigned int n;
+};
+
/* these functions provide a simple way to allocate integers from a
pool without repetition */
diff --git a/lib/util/bitmap.h b/lib/util/bitmap.h
index cf7aa1b0bd..6d75929fb5 100644
--- a/lib/util/bitmap.h
+++ b/lib/util/bitmap.h
@@ -19,10 +19,7 @@
/* The following definitions come from lib/bitmap.c */
-struct bitmap {
- uint32_t *b;
- unsigned int n;
-};
+struct bitmap;
struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n);
int bitmap_copy(struct bitmap * const dst, const struct bitmap * const src);