]> git.notmuchmail.org Git - notmuch/blobdiff - lib/query.cc
lib: add public accessor for database from query
[notmuch] / lib / query.cc
index 9cedb6a8440ae907ac83f9d0b2ac98e8a9f5c9aa..5275b5a24fe620ed2dcef5fd2d87a9b78a1860a6 100644 (file)
@@ -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;
+}