]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database-private.h
lib: factor out query construction from regexp
[notmuch] / lib / database-private.h
index 85d552999fdedc7ed903a3064544f87e51014ab8..cf4eb94b0583a80c9c1ff432b243bccda83011b4 100644 (file)
@@ -306,6 +306,11 @@ _notmuch_database_setup_user_query_fields (notmuch_database_t *notmuch);
 notmuch_status_t
 _notmuch_sexp_string_to_xapian_query (notmuch_database_t *notmuch, const char *querystr,
                                      Xapian::Query &output);
+
+notmuch_status_t
+_notmuch_regexp_to_query (notmuch_database_t *notmuch, Xapian::valueno slot, std::string field,
+                         std::string regexp_str,
+                         Xapian::Query &output, std::string &msg);
 #endif
 
 #endif