aboutsummaryrefslogtreecommitdiff
path: root/lib/database-private.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-03-14 11:01:58 -0300
committerDavid Bremner <david@tethera.net>2021-03-18 08:03:48 -0300
commitf0717aa380cfa84c1973f7b03948d93b261a73fe (patch)
treef209beab0a8e4c7ce32c079b4c0837973510e8b1 /lib/database-private.h
parent1121299905e2b2684d7cc56ec35c26c3a012783e (diff)
lib: save path of xapian database in notmuch struct.
This will allow re-opening in a different mode (read/write vs. read-only) with current Xapian API. It will also prove useful when updating the compact functions to support more flexible database location.
Diffstat (limited to 'lib/database-private.h')
-rw-r--r--lib/database-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h
index d83cf0d0..d936b216 100644
--- a/lib/database-private.h
+++ b/lib/database-private.h
@@ -189,8 +189,12 @@ operator& (notmuch_field_flag_t a, notmuch_field_flag_t b)
struct _notmuch_database {
bool exception_reported;
+ /* Path to database parent directory and or/mail root */
char *path;
+ /* Path to actual database */
+ const char *xapian_path;
+
int atomic_nesting;
/* true if changes have been made in this atomic section */
bool atomic_dirty;