aboutsummaryrefslogtreecommitdiff
path: root/lib/database-private.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-02-21 07:34:52 -0400
committerDavid Bremner <david@tethera.net>2021-03-27 09:26:14 -0300
commitf5d4349921ded021756d6754d347420e68b23111 (patch)
tree9d900e9d913e7309d94619413112c1c76bee0335 /lib/database-private.h
parent217f8196088f200972d35ee9181bfe361cccc04a (diff)
lib: provide notmuch_config_path
Since the library searches in several locations for a config file, the caller does not know which of these is chosen in the usual case of passing NULL as a config file. This changes provides an API for the caller to retrieve the name of the config file chosen. It will be tested in a following commit.
Diffstat (limited to 'lib/database-private.h')
-rw-r--r--lib/database-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h
index 2900382d..0d12ec1e 100644
--- a/lib/database-private.h
+++ b/lib/database-private.h
@@ -192,6 +192,9 @@ struct _notmuch_database {
/* Path to actual database */
const char *xapian_path;
+ /* Path to config loaded, if any */
+ const char *config_path;
+
int atomic_nesting;
/* true if changes have been made in this atomic section */
bool atomic_dirty;