Add internal functions to search for alternate doc types
[notmuch] / lib / notmuch-private.h
index 5dd4770e96190276c3e5077d977cb200aa6f6b82..d95bf31053e7499d9d5a12d3aa0424544dc7d070 100644 (file)
@@ -477,6 +477,17 @@ void
 _notmuch_doc_id_set_remove (notmuch_doc_id_set_t *doc_ids,
                             unsigned int doc_id);
 
+/* querying xapian documents by type (e.g. "mail" or "ghost"): */
+notmuch_status_t
+_notmuch_query_search_documents (notmuch_query_t *query,
+                                const char *type,
+                                notmuch_messages_t **out);
+
+notmuch_status_t
+_notmuch_query_count_documents (notmuch_query_t *query,
+                               const char *type,
+                               unsigned *count_out);
+
 /* message.cc */
 
 void