diff options
| author | David Bremner <david@tethera.net> | 2021-12-25 09:33:03 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-01-15 15:53:31 -0400 |
| commit | 63b4c469835133ac44b7db516fc54b8a4abb90a8 (patch) | |
| tree | 2b1499cad1d33140f9da5ff9a9710837f0d93eee /lib/database-private.h | |
| parent | fd0edeb561e5593d8a834fcc74602b2d8c637123 (diff) | |
lib/open: use notmuch->params to track split status
Persisting this status will allow us to use the information in other
compilation units, in particular when setting configuration defaults.
Diffstat (limited to 'lib/database-private.h')
| -rw-r--r-- | lib/database-private.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/database-private.h b/lib/database-private.h index 8133e364..5db8882f 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -191,12 +191,17 @@ operator& (notmuch_field_flag_t a, notmuch_field_flag_t b) Xapian::QueryParser::FLAG_PURE_NOT) /* - * Which parameters were explicit when the database was opened */ + * explicit and implied parameters to open */ typedef enum { NOTMUCH_PARAM_NONE = 0, + /* database passed explicitely */ NOTMUCH_PARAM_DATABASE = 1 << 0, + /* config file passed explicitely */ NOTMUCH_PARAM_CONFIG = 1 << 1, + /* profile name passed explicitely */ NOTMUCH_PARAM_PROFILE = 1 << 2, + /* split (e.g. XDG) configuration */ + NOTMUCH_PARAM_SPLIT = 1 << 3, } notmuch_open_param_t; /* |
