* lib: try to reopen database when it got updated from the outside (for guile)

This commit is contained in:
djcb
2012-08-19 09:57:49 +03:00
parent 90674172b9
commit 93171a5b90
4 changed files with 48 additions and 7 deletions

View File

@ -48,13 +48,16 @@ typedef struct _MuMsgIter MuMsgIter;
* @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
* @param err receives error information. if the error is MU_ERROR_XAPIAN_MODIFIED,
* the database should be reloaded.
*
* @return a new MuMsgIter, or NULL in case of error
*/
MuMsgIter *mu_msg_iter_new (XapianEnquire *enq,
size_t batchsize, gboolean threads,
MuMsgFieldId threadsortfield,
gboolean revert) G_GNUC_WARN_UNUSED_RESULT;
gboolean revert,
GError **err) G_GNUC_WARN_UNUSED_RESULT;
/**
* get the next message (which you got from