diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-08-22 04:15:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:25 -0500 |
commit | 3e83b0fac4e0202e2d111f76fc0071b834058468 (patch) | |
tree | 829f55825bfd74f1bbd8178fc5838ca8faa41983 /source4/lib | |
parent | e4759eb0b60edc5ce3ad404590a23044a5130a0d (diff) | |
download | samba-3e83b0fac4e0202e2d111f76fc0071b834058468.tar.gz samba-3e83b0fac4e0202e2d111f76fc0071b834058468.tar.bz2 samba-3e83b0fac4e0202e2d111f76fc0071b834058468.zip |
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)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/modules/ldb_map.h | 6 | ||||
-rw-r--r-- | 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 { |