diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-10-12 23:01:08 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-13 14:06:07 +0200 |
commit | 01c934c81e55b79601122d8e0740c7946077c37e (patch) | |
tree | f6e7909690bc399c3036ef80e22997aadbf88884 /lib/util/tdb_wrap.h | |
parent | 3cdb1fe4404e26ae383cfb73bfa8af36cb1d7f7c (diff) | |
download | samba-01c934c81e55b79601122d8e0740c7946077c37e.tar.gz samba-01c934c81e55b79601122d8e0740c7946077c37e.tar.bz2 samba-01c934c81e55b79601122d8e0740c7946077c37e.zip |
lib/util: Add back control of mmap and hash size in tdb for top level build
This passes down a struct loadparm_context to allow these
parameters to be checked. This may be s3 or s4 context, allowing the
#if _SAMBA_BUILD_ macro to go away safely.
Andrew Bartlett
Diffstat (limited to 'lib/util/tdb_wrap.h')
-rw-r--r-- | lib/util/tdb_wrap.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/tdb_wrap.h b/lib/util/tdb_wrap.h index 6f9f3834d4..81e77e76a4 100644 --- a/lib/util/tdb_wrap.h +++ b/lib/util/tdb_wrap.h @@ -35,8 +35,11 @@ struct tdb_wrap { struct tdb_context *tdb; }; +struct loadparm_context; + struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx, const char *name, int hash_size, int tdb_flags, - int open_flags, mode_t mode); + int open_flags, mode_t mode, + struct loadparm_context *lp_ctx); #endif /* _TDB_WRAP_H_ */ |