diff options
| author | David Bremner <david@tethera.net> | 2022-08-14 12:02:58 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-09-03 08:36:53 -0300 |
| commit | 93c602a82fdbd03e0104ea922d073b2b1aa6b241 (patch) | |
| tree | faa20061aff7cc01b643df2b4212d831f098d2e4 /lib/database-private.h | |
| parent | 606d9b02e46498874f6c3b5af18467c870e8658b (diff) | |
lib: factor out lastmod range handling from sexp parser.
This will permit the re-use of the same logic in the infix query
parser. The location of the shared code in the infix side is for
consistency with the other shared parsing logic. It will make more
sense when a Xapian field processor is added for the lastmod prefix.
Diffstat (limited to 'lib/database-private.h')
| -rw-r--r-- | lib/database-private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h index 419b9fe6..b9be4e22 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -381,5 +381,11 @@ _notmuch_sexp_string_to_xapian_query (notmuch_database_t *notmuch, const char *q notmuch_status_t _notmuch_date_strings_to_query (Xapian::valueno slot, const std::string &from, const std::string &to, Xapian::Query &output, std::string &msg); + +/* lastmod-fp.h */ +notmuch_status_t +_notmuch_lastmod_strings_to_query (notmuch_database_t *notmuch, + const std::string &from, const std::string &to, + Xapian::Query &output, std::string &msg); #endif #endif |
