mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
16 lines
341 B
C
16 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
|