X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase-private.h;h=1a73dacc365f563134d123fe09d91668b45a6d1f;hb=d21e72c9f95d1d052360976302a2f9cfcc1556a5;hp=c9bc712b46c1a0b51c8d93af9189111604b7dd7f;hpb=3b4097824159c6fdebb8a88b5447beb9a6226ea3;p=notmuch diff --git a/lib/database-private.h b/lib/database-private.h index c9bc712b..1a73dacc 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -189,7 +189,11 @@ operator& (notmuch_field_flag_t a, notmuch_field_flag_t b) struct _notmuch_database { bool exception_reported; - char *path; + /* 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 */ @@ -202,6 +206,10 @@ struct _notmuch_database { enum _notmuch_features features; unsigned int last_doc_id; + + /* 16 bytes (+ terminator) for hexadecimal representation of + * a 64-bit integer. */ + char thread_id_str[17]; uint64_t last_thread_id; /* error reporting; this value persists only until the @@ -228,6 +236,9 @@ struct _notmuch_database { * here, but at least they are small */ notmuch_string_map_t *user_prefix; notmuch_string_map_t *user_header; + + /* Cached and possibly overridden configuration */ + notmuch_string_map_t *config; }; /* Prior to database version 3, features were implied by the database