]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database-private.h
lib/query: factor out _notmuch_query_string_to_xapian_query
[notmuch] / lib / database-private.h
index 85d552999fdedc7ed903a3064544f87e51014ab8..7ee8e62d9b56aada2930b6d69e99494717082382 100644 (file)
@@ -302,10 +302,22 @@ notmuch_status_t
 _notmuch_database_setup_user_query_fields (notmuch_database_t *notmuch);
 
 #if __cplusplus
+/* query.cc */
+notmuch_status_t
+_notmuch_query_string_to_xapian_query (notmuch_database_t *notmuch,
+                                      std::string query_string,
+                                      Xapian::Query &output,
+                                      std::string &msg);
 /* parse-sexp.cc */
 notmuch_status_t
 _notmuch_sexp_string_to_xapian_query (notmuch_database_t *notmuch, const char *querystr,
                                      Xapian::Query &output);
+
+/* regexp-fields.cc */
+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