]> git.notmuchmail.org Git - notmuch/blob - util/xapian-extra.h
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / util / xapian-extra.h
1 #ifndef _XAPIAN_EXTRA_H
2 #define _XAPIAN_EXTRA_H
3
4 #include <string>
5 #include <xapian.h>
6
7 inline Xapian::Query
8 xapian_query_match_all (void)
9 {
10     // Xapian::Query::MatchAll isn't thread safe (a static object with reference
11     // counting) so instead reconstruct the equivalent on demand.
12     return Xapian::Query (std::string ());
13 }
14
15 #endif