]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
tdb2: Make tdb1 use the tdb_file structure.
[ccan] / ccan / tdb2 / private.h
index f6ed65a90969596e2661995f974a4b8f4fd6bd67..89e69610d428fe82edf0fc71d160f69e89489225 100644 (file)
@@ -339,6 +339,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;
 
@@ -378,8 +381,6 @@ struct tdb_context {
        /* Direct access information */
        struct tdb_access_hdr *access;
 
-       /* The actual file information */
-       struct tdb_file *file;
 };
 
 struct tdb_methods {