diff options
| author | Austin Clements <aclements@csail.mit.edu> | 2014-10-13 02:20:02 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-08-13 23:52:51 +0200 |
| commit | 98ee460eaa98f1428aecf03dd39fcf314e6f62c0 (patch) | |
| tree | 60fc701a61c88ea92bd009f0f662c8107360f56b /lib/database-private.h | |
| parent | 7f57b747b95eece465d10fd0acba20cc3dd868f1 (diff) | |
lib: API to retrieve database revision and UUID
This exposes the committed database revision to library users along
with a UUID that can be used to detect when revision numbers are no
longer comparable (e.g., because the database has been replaced).
Diffstat (limited to 'lib/database-private.h')
| -rw-r--r-- | lib/database-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h index 5c5a2bb2..4e932572 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -170,6 +170,7 @@ struct _notmuch_database { * under a higher revision number, which can be generated with * notmuch_database_new_revision. */ unsigned long revision; + const char *uuid; Xapian::QueryParser *query_parser; Xapian::TermGenerator *term_gen; |
