return 0;
}
-notmuch_query_t *
-notmuch_query_create (notmuch_database_t *notmuch,
- const char *query_string)
+static notmuch_query_t *
+_notmuch_query_constructor (notmuch_database_t *notmuch,
+ const char *query_string)
{
notmuch_query_t *query;
return query;
}
+notmuch_query_t *
+notmuch_query_create (notmuch_database_t *notmuch,
+ const char *query_string)
+{
+
+ notmuch_query_t *query = _notmuch_query_constructor (notmuch, query_string);
+
+ if (! query)
+ return NULL;
+
+ return query;
+}
+
static notmuch_status_t
_notmuch_query_ensure_parsed (notmuch_query_t *query)
{