Commit 934b7717 934b771789c96973a9dcbd9948f158c4caf6bbc2 by Sergey Poznyakoff

Update invocations of mu_registrar_lookup

1 parent f2fba5d2
......@@ -61,7 +61,8 @@ mu_folder_create (mu_folder_t *pfolder, const char *name)
/* Look in the registrar list(iterator), for a possible concrete mailbox
implementation that could match the URL. */
if (mu_registrar_lookup (name, &record, MU_FOLDER_ATTRIBUTE_DIRECTORY))
if (mu_registrar_lookup (name, MU_FOLDER_ATTRIBUTE_DIRECTORY, &record, NULL)
== 0)
{
int (*f_init) (mu_folder_t) = NULL;
int (*u_init) (mu_url_t) = NULL;
......
......@@ -90,7 +90,7 @@ mu_mailer_create (mu_mailer_t * pmailer, const char *name)
if (name == NULL)
mu_mailer_get_url_default (&name);
if (mu_registrar_lookup (name, &record, MU_FOLDER_ATTRIBUTE_FILE))
if (mu_registrar_lookup (name, MU_FOLDER_ATTRIBUTE_FILE, &record, NULL) == 0)
{
int (*m_init) (mu_mailer_t) = NULL;
int (*u_init) (mu_url_t) = NULL;
......
......@@ -333,10 +333,9 @@ list_helper (struct search_data *data,
if (stat (gl.gl_pathv[i], &st) == 0)
{
mu_record_t record;
resp->type = mu_registrar_lookup (gl.gl_pathv[i],
&record,
MU_FOLDER_ATTRIBUTE_ALL);
resp->type = 0;
mu_registrar_lookup (gl.gl_pathv[i], MU_FOLDER_ATTRIBUTE_ALL,
NULL, &resp->type);
if ((resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY)
&& !inode_list_lookup (ilist, &st))
{
......