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) ...@@ -61,7 +61,8 @@ mu_folder_create (mu_folder_t *pfolder, const char *name)
61 61
62 /* Look in the registrar list(iterator), for a possible concrete mailbox 62 /* Look in the registrar list(iterator), for a possible concrete mailbox
63 implementation that could match the URL. */ 63 implementation that could match the URL. */
64 if (mu_registrar_lookup (name, &record, MU_FOLDER_ATTRIBUTE_DIRECTORY)) 64 if (mu_registrar_lookup (name, MU_FOLDER_ATTRIBUTE_DIRECTORY, &record, NULL)
65 == 0)
65 { 66 {
66 int (*f_init) (mu_folder_t) = NULL; 67 int (*f_init) (mu_folder_t) = NULL;
67 int (*u_init) (mu_url_t) = NULL; 68 int (*u_init) (mu_url_t) = NULL;
......
...@@ -90,7 +90,7 @@ mu_mailer_create (mu_mailer_t * pmailer, const char *name) ...@@ -90,7 +90,7 @@ mu_mailer_create (mu_mailer_t * pmailer, const char *name)
90 if (name == NULL) 90 if (name == NULL)
91 mu_mailer_get_url_default (&name); 91 mu_mailer_get_url_default (&name);
92 92
93 if (mu_registrar_lookup (name, &record, MU_FOLDER_ATTRIBUTE_FILE)) 93 if (mu_registrar_lookup (name, MU_FOLDER_ATTRIBUTE_FILE, &record, NULL) == 0)
94 { 94 {
95 int (*m_init) (mu_mailer_t) = NULL; 95 int (*m_init) (mu_mailer_t) = NULL;
96 int (*u_init) (mu_url_t) = NULL; 96 int (*u_init) (mu_url_t) = NULL;
......
...@@ -333,10 +333,9 @@ list_helper (struct search_data *data, ...@@ -333,10 +333,9 @@ list_helper (struct search_data *data,
333 333
334 if (stat (gl.gl_pathv[i], &st) == 0) 334 if (stat (gl.gl_pathv[i], &st) == 0)
335 { 335 {
336 mu_record_t record; 336 resp->type = 0;
337 resp->type = mu_registrar_lookup (gl.gl_pathv[i], 337 mu_registrar_lookup (gl.gl_pathv[i], MU_FOLDER_ATTRIBUTE_ALL,
338 &record, 338 NULL, &resp->type);
339 MU_FOLDER_ATTRIBUTE_ALL);
340 if ((resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) 339 if ((resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY)
341 && !inode_list_lookup (ilist, &st)) 340 && !inode_list_lookup (ilist, &st))
342 { 341 {
......