X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=util%2Fxapian-extra.h;fp=util%2Fxapian-extra.h;h=39c7f48f0d43cd139e6e66afc4768b7679ef320e;hp=0000000000000000000000000000000000000000;hb=6273966d0b50541a37a652ccf6113f184eff5300;hpb=4152e1bc20fa2803186740c76579b495f4c77fb6 diff --git a/util/xapian-extra.h b/util/xapian-extra.h new file mode 100644 index 00000000..39c7f48f --- /dev/null +++ b/util/xapian-extra.h @@ -0,0 +1,15 @@ +#ifndef _XAPIAN_EXTRA_H +#define _XAPIAN_EXTRA_H + +#include +#include + +inline Xapian::Query +xapian_query_match_all (void) +{ + // Xapian::Query::MatchAll isn't thread safe (a static object with reference + // counting) so instead reconstruct the equivalent on demand. + return Xapian::Query (std::string ()); +} + +#endif