lib/util: Make "struct bitmap" abstract
authorVolker Lendecke <vl@samba.org>
Tue, 30 Oct 2012 21:43:21 +0000 (22:43 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 7 Nov 2012 14:32:24 +0000 (15:32 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/util/bitmap.c
lib/util/bitmap.h

index 7defd778409f4c1eb4886961122a644c3dc134ba..1ae2aaaf710a0c07aeeae8a625b62416fc82bc15 100644 (file)
 #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 */
 
index cf7aa1b0bdd3c214122512626250f8127bfe685b..6d75929fb5a6df155697023990af44d14765947f 100644 (file)
 
 /* 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);