]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch.h
lib: add public accessor for database from query
[notmuch] / lib / notmuch.h
index 7e8e162db59376e2c76993b8cade609562a5bfc1..421c19ddbecd8b4251064b0a6c804b8825c92aa7 100644 (file)
@@ -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