X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fquery.cc;h=9acf2b03b84da6729f78a8e6ee843a7eb35d0afd;hb=e83b40138ef3dd116001a4c53150d0a3274b41c0;hp=59f4011b31d3a3f5616227d352b8f7234b05ee0f;hpb=2f8bea876da8281b28bf991b6710920c1a555826;p=obsolete%2Fnotmuch-old diff --git a/lib/query.cc b/lib/query.cc index 59f4011b..9acf2b03 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -70,12 +70,24 @@ notmuch_query_create (notmuch_database_t *notmuch, return query; } +const char * +notmuch_query_get_query_string (notmuch_query_t *query) +{ + return query->query_string; +} + void notmuch_query_set_sort (notmuch_query_t *query, notmuch_sort_t sort) { query->sort = sort; } +notmuch_sort_t +notmuch_query_get_sort (notmuch_query_t *query) +{ + return query->sort; +} + /* We end up having to call the destructors explicitly because we had * to use "placement new" in order to initialize C++ objects within a * block that we allocated with talloc. So C++ is making talloc