* add mu_msg_iter_get_index, to get the sequence number of the iterator

This commit is contained in:
Dirk-Jan C. Binnema
2011-03-19 10:11:13 +02:00
parent b98af916b5
commit 4f93f7cc05
3 changed files with 26 additions and 2 deletions

View File

@ -87,6 +87,20 @@ MuMsg* mu_msg_iter_get_msg (MuMsgIter *iter, GError **err)
unsigned int mu_msg_iter_get_docid (MuMsgIter *iter);
/**
* get the index for this iterator (ie. somewhere between [0..n-1],
* with being the number of matches, and increasing 1 for each
* iter_next)
*
* @param iter a valid MuMsgIter
*
* @return the index or (unsigned int)-1 in case of error
*/
unsigned int mu_msg_iter_get_index (MuMsgIter *iter);
/**
* get the full path of the message file
*