* add mu_msg_iter_reset (to reset iter to the beginning), add tests

This commit is contained in:
Dirk-Jan C. Binnema
2011-06-02 18:13:17 +03:00
parent 4c1baccc86
commit 4dfe33609b
3 changed files with 37 additions and 4 deletions

View File

@ -62,6 +62,16 @@ MuMsgIter *mu_msg_iter_new (XapianEnquire *enq,
gboolean mu_msg_iter_next (MuMsgIter *iter);
/**
* reset the iterator to the beginning
*
* @param iter a valid MuMsgIter iterator
*
* @return TRUE if it succeeded, FALSE otherwise
*/
gboolean mu_msg_iter_reset (MuMsgIter *iter);
/**
* does this iterator point past the end of the list?
*