From: Volker Lendecke Date: Tue, 30 Oct 2012 21:43:21 +0000 (+0100) Subject: lib/util: Make "struct bitmap" abstract X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=7f4d55d1b8bda4f0d7a8bdbfe82c9a623dfe5843 lib/util: Make "struct bitmap" abstract Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- diff --git a/lib/util/bitmap.c b/lib/util/bitmap.c index 7defd778409f..1ae2aaaf710a 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 cf7aa1b0bdd3..6d75929fb5a6 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);