From 3e83b0fac4e0202e2d111f76fc0071b834058468 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 22 Aug 2006 04:15:39 +0000 Subject: r17691: Make the structure more public, so we have somewhere for calling modules to put private data. Andrew Bartlett (This used to be commit ba00f45357d113bf245c6622ef96701aa7c7026c) --- source4/lib/ldb/modules/ldb_map.h | 6 ++++++ source4/lib/ldb/modules/ldb_map_private.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/source4/lib/ldb/modules/ldb_map.h b/source4/lib/ldb/modules/ldb_map.h index 99231e61f1..edd3eca871 100644 --- a/source4/lib/ldb/modules/ldb_map.h +++ b/source4/lib/ldb/modules/ldb_map.h @@ -135,6 +135,12 @@ struct ldb_map_context { const struct ldb_dn *remote_base_dn; }; +/* Global private data */ +struct map_private { + void *caller_private; + struct ldb_map_context context; +}; + /* initialization function */ int ldb_map_init(struct ldb_module *module, diff --git a/source4/lib/ldb/modules/ldb_map_private.h b/source4/lib/ldb/modules/ldb_map_private.h index 89d0fe0afe..4fff5614af 100644 --- a/source4/lib/ldb/modules/ldb_map_private.h +++ b/source4/lib/ldb/modules/ldb_map_private.h @@ -13,11 +13,6 @@ typedef int (*ldb_search_callback)(struct ldb_context *, void *, struct ldb_repl /* Private data structures * ======================= */ -/* Global private data */ -struct map_private { - struct ldb_map_context context; -}; - /* Context data for mapped requests */ struct map_context { enum map_step { -- cgit