X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=421c19ddbecd8b4251064b0a6c804b8825c92aa7;hb=6b440a0adf327fa9c3f5e3dcc84f9356c62a4580;hp=7e8e162db59376e2c76993b8cade609562a5bfc1;hpb=4fed7047b23b3f59cbbfee8780fc1314a747b80e;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index 7e8e162d..421c19dd 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -712,6 +712,12 @@ typedef enum { const char * notmuch_query_get_query_string (notmuch_query_t *query); +/** + * Return the notmuch database of this query. See notmuch_query_create. + */ +notmuch_database_t * +notmuch_query_get_database (notmuch_query_t *query); + /** * Exclude values for notmuch_query_set_omit_excluded. The strange * order is to maintain backward compatibility: the old FALSE/TRUE