]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database-private.h
Permit opening the notmuch database in read-only mode.
[notmuch] / lib / database-private.h
index 76e26ce0045b70811c987c66a8bce2496c0f74de..79c7916a088da6ebd22c2d007da4ff7c9720088c 100644 (file)
@@ -27,7 +27,8 @@
 
 struct _notmuch_database {
     char *path;
-    Xapian::WritableDatabase *xapian_db;
+    notmuch_database_mode_t mode;
+    Xapian::Database *xapian_db;
     Xapian::QueryParser *query_parser;
     Xapian::TermGenerator *term_gen;
 };