X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=d95bf31053e7499d9d5a12d3aa0424544dc7d070;hp=5dd4770e96190276c3e5077d977cb200aa6f6b82;hb=011fc41d4d1a1dc9ae3765c9f08ee603eea7bc7e;hpb=604d1e0977c2ede365f87492d6b9bf9a83c3e1d3 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 5dd4770e..d95bf310 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -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