]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database-private.h
ruby: create Data_Wrap_Notmuch_Object helper
[notmuch] / lib / database-private.h
index d936b216954cf673bd8636fee90a6246c64a7e49..1a73dacc365f563134d123fe09d91668b45a6d1f 100644 (file)
@@ -189,12 +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;
 
+    /* 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;
@@ -206,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