aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-10-28 10:30:26 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-10-28 10:30:26 -0700
commite83b40138ef3dd116001a4c53150d0a3274b41c0 (patch)
tree53e76002c865769b9151c3a6ebf2c11e45fe0623 /lib/notmuch.h
parent2f8bea876da8281b28bf991b6710920c1a555826 (diff)
lib: Add two functions: notmuch_query_get_query_string and _get_sort
It can be handy to be able to query these settings from an existing query object.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 9a196999..bd0880f3 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -361,10 +361,18 @@ typedef enum {
NOTMUCH_SORT_UNSORTED
} notmuch_sort_t;
+/* Return the query_string of this query. See notmuch_query_create. */
+const char *
+notmuch_query_get_query_string (notmuch_query_t *query);
+
/* Specify the sorting desired for this query. */
void
notmuch_query_set_sort (notmuch_query_t *query, notmuch_sort_t sort);
+/* Return the sort specified for this query. See notmuch_query_set_sort. */
+notmuch_sort_t
+notmuch_query_get_sort (notmuch_query_t *query);
+
/* Execute a query for threads, returning a notmuch_threads_t object
* which can be used to iterate over the results. The returned threads
* object is owned by the query and as such, will only be valid until