mu: don't need a path argument for index

We get it from the store.
This commit is contained in:
Dirk-Jan C. Binnema
2020-01-20 12:32:29 +02:00
parent 232f370936
commit bb932fa217
3 changed files with 13 additions and 11 deletions

View File

@ -331,18 +331,19 @@ mu_index_set_max_msg_size (MuIndex *index, guint max_size)
MuError
mu_index_run (MuIndex *index, const char *path,
gboolean reindex, gboolean lazycheck,
mu_index_run (MuIndex *index, gboolean reindex, gboolean lazycheck,
MuIndexStats *stats,
MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb,
void *user_data)
{
MuIndexCallbackData cb_data;
MuError rv;
MuIndexCallbackData cb_data;
MuError rv;
const char *path;
g_return_val_if_fail (index && index->_store, MU_ERROR);
g_return_val_if_fail (msg_cb, MU_ERROR);
path = mu_store_maildir (index->_store);
if (!check_path (path))
return MU_ERROR;
@ -390,15 +391,17 @@ on_stats_maildir_file (const char *fullpath, const char *mdir,
MuError
mu_index_stats (MuIndex *index, const char *path,
mu_index_stats (MuIndex *index,
MuIndexStats *stats, MuIndexMsgCallback cb_msg,
MuIndexDirCallback cb_dir, void *user_data)
{
MuIndexCallbackData cb_data;
const char *path;
MuIndexCallbackData cb_data;
g_return_val_if_fail (index, MU_ERROR);
g_return_val_if_fail (cb_msg, MU_ERROR);
path = mu_store_maildir (index->_store);
if (!check_path (path))
return MU_ERROR;