X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fquery.cc;h=5275b5a24fe620ed2dcef5fd2d87a9b78a1860a6;hb=02a2eeb427d6b424029f6e5e5ddad4c6ec987741;hp=9cedb6a8440ae907ac83f9d0b2ac98e8a9f5c9aa;hpb=736ac26407914425a9c94e86616225292cf716dd;p=notmuch 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; +}