]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database-private.h
lib: replace use of static_cast for writable databases
[notmuch] / lib / database-private.h
index 763590079f129c9bf84f363ead8c2cb150fcbdce..041602cdc6a8911b33531cfa8e0dbd72307b8242 100644 (file)
@@ -189,12 +189,12 @@ struct _notmuch_database {
 
     char *path;
 
-    notmuch_database_mode_t mode;
     int atomic_nesting;
     /* true if changes have been made in this atomic section */
     bool atomic_dirty;
     Xapian::Database *xapian_db;
-
+    Xapian::WritableDatabase *writable_xapian_db;
+    bool open;
     /* Bit mask of features used by this database.  This is a
      * bitwise-OR of NOTMUCH_FEATURE_* values (above). */
     enum _notmuch_features features;