* mu-msg-iter: support reverse sorting

This commit is contained in:
Dirk-Jan C. Binnema
2011-09-30 08:34:49 +03:00
parent ef88afc0a7
commit a936a4dab5
2 changed files with 9 additions and 7 deletions

View File

@ -47,13 +47,14 @@ typedef struct _MuMsgIter MuMsgIter;
* @param threads whether to calculate threads
* @param sorting field when using threads; note, when 'threads' is
* FALSE, this should be MU_MSG_FIELD_ID_NONE
* @param if TRUE, revert the sorting order
*
* @return a new MuMsgIter, or NULL in case of error
*/
MuMsgIter *mu_msg_iter_new (XapianEnquire *enq,
size_t batchsize,
gboolean threads,
MuMsgFieldId threadsortfield) G_GNUC_WARN_UNUSED_RESULT;
size_t batchsize, gboolean threads,
MuMsgFieldId threadsortfield,
gboolean revert) G_GNUC_WARN_UNUSED_RESULT;
/**
* get the next message (which you got from