]> git.cworth.org Git - notmuch/blobdiff - lib/notmuch.h
build: extract library versions from notmuch.h
[notmuch] / lib / notmuch.h
index 7e8e162db59376e2c76993b8cade609562a5bfc1..b1f5bfa161f77853b8c4e40a90605c6595e1ab91 100644 (file)
@@ -56,7 +56,7 @@ NOTMUCH_BEGIN_DECLS
  * version in Makefile.local.
  */
 #define LIBNOTMUCH_MAJOR_VERSION       4
-#define LIBNOTMUCH_MINOR_VERSION       2
+#define LIBNOTMUCH_MINOR_VERSION       3
 #define LIBNOTMUCH_MICRO_VERSION       0
 
 #define NOTMUCH_DEPRECATED(major,minor) \
@@ -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