From 7f4d55d1b8bda4f0d7a8bdbfe82c9a623dfe5843 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 30 Oct 2012 22:43:21 +0100 Subject: lib/util: Make "struct bitmap" abstract Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- lib/util/bitmap.c | 5 +++++ lib/util/bitmap.h | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/util') 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); -- cgit