notmuch/util/xapian-extra.h
David Bremner 126347b694 Import notmuch_0.38.2.orig.tar.xz
[dgit import orig notmuch_0.38.2.orig.tar.xz]
2023-12-01 07:51:09 -04:00

15 lines
341 B
C++

#ifndef _XAPIAN_EXTRA_H
#define _XAPIAN_EXTRA_H
#include <string>
#include <xapian.h>
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