summaryrefslogtreecommitdiff
path: root/lib/tdb2/private.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:37:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:37:13 +0930
commitc5b7c4aea8a1d2be1d61c3b909177cb5ef07fd62 (patch)
treedb52ef46f4f127ffba98916a42b73eff780450af /lib/tdb2/private.h
parent5a3f207318bee2fc2236ac1e19eda8ac2ae80829 (diff)
downloadsamba-c5b7c4aea8a1d2be1d61c3b909177cb5ef07fd62.tar.gz
samba-c5b7c4aea8a1d2be1d61c3b909177cb5ef07fd62.tar.bz2
samba-c5b7c4aea8a1d2be1d61c3b909177cb5ef07fd62.zip
tdb2: Make tdb1 use the tdb_file structure.
Because tdb2 allows multiple opens of the same TDB, we separate out the file information from the struct tdb_context. Do the same for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 60210a73ec08a7b34ba637ad19e6749cf6dc1952)
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r--lib/tdb2/private.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h
index f2e458cdf9..52dad3dc5d 100644
--- a/lib/tdb2/private.h
+++ b/lib/tdb2/private.h
@@ -351,6 +351,9 @@ struct tdb_context {
/* Last error we returned. */
enum TDB_ERROR last_error;
+ /* The actual file information */
+ struct tdb_file *file;
+
/* Open flags passed to tdb_open. */
int open_flags;
@@ -390,8 +393,6 @@ struct tdb_context {
/* Direct access information */
struct tdb_access_hdr *access;
- /* The actual file information */
- struct tdb_file *file;
};
struct tdb_methods {