aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorGravatar Sebastian Spaeth <Sebastian@SSpaeth.de>2010-04-16 08:38:46 +0200
committerGravatar Carl Worth <cworth@cworth.org>2010-04-21 16:06:05 -0700
commitaadb15a002dc01903d60ca40048d6d4ef3990863 (patch)
treea3fb3a903718e2b1ee8ed04a6deef72c3dfda104 /lib/notmuch.h
parentf41a35e2923b0b3ef2f66e91cd30e20b4c1a336a (diff)
query.cc: allow to return query results unsorted
Previously, we always sorted the returned results by some string value, (newest-to-oldest by default), however in some cases (as when applying tags to a search result) we are not interested in any special order. This introduces a NOTMUCH_SORT_UNSORTED value that does just that. It is not used at the moment anywhere in the code. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index a7e66dd3..bae48a65 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -346,7 +346,8 @@ notmuch_query_create (notmuch_database_t *database,
typedef enum {
NOTMUCH_SORT_OLDEST_FIRST,
NOTMUCH_SORT_NEWEST_FIRST,
- NOTMUCH_SORT_MESSAGE_ID
+ NOTMUCH_SORT_MESSAGE_ID,
+ NOTMUCH_SORT_UNSORTED
} notmuch_sort_t;
/* Specify the sorting desired for this query. */