]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
tdb2: Make tdb1 use the tdb_file structure.
[ccan] / ccan / tdb2 / private.h
index 8d961e82c365c6b0f6956fbf1019451c285597f5..89e69610d428fe82edf0fc71d160f69e89489225 100644 (file)
@@ -336,6 +336,12 @@ struct tdb_context {
                       void *data);
        void *log_data;
 
+       /* 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;
 
@@ -375,11 +381,6 @@ struct tdb_context {
        /* Direct access information */
        struct tdb_access_hdr *access;
 
-       /* Last error we returned. */
-       enum TDB_ERROR last_error;
-
-       /* The actual file information */
-       struct tdb_file *file;
 };
 
 struct tdb_methods {