diff options
| author | David Bremner <david@tethera.net> | 2015-06-07 17:01:56 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-08-04 09:11:34 +0200 |
| commit | 6b440a0adf327fa9c3f5e3dcc84f9356c62a4580 (patch) | |
| tree | 60140446bf1d09130cace084e632365d96fce74a /lib/query.cc | |
| parent | 4fed7047b23b3f59cbbfee8780fc1314a747b80e (diff) | |
lib: add public accessor for database from query
This is to make it easier for clients of the library to update to the
new error code returning versions of notmuch_query_search_messages
Diffstat (limited to 'lib/query.cc')
| -rw-r--r-- | lib/query.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/query.cc b/lib/query.cc index 9cedb6a8..5275b5a2 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -654,3 +654,9 @@ notmuch_query_count_threads (notmuch_query_t *query) return count; } + +notmuch_database_t * +notmuch_query_get_database (notmuch_query_t *query) +{ + return query->notmuch; +} |
