Lines Matching defs:roots
22 ARRAY(struct imapc_quota_refresh_root) roots;
110 array_foreach("a->roots, rootp) {
128 array_foreach_modifiable(&refresh->roots, refresh_root) {
133 refresh_root = array_append_space(&refresh->roots);
158 if (array_count(&refresh->roots) > 0) {
245 p_array_init(&refresh->roots, refresh->pool, 4);
255 if (array_count(&refresh->roots) == 0) {
260 refresh_root = array_idx(&refresh->roots, 0);
262 array_foreach("a->roots, rootp) {
315 /* if there are multiple quota roots, use the first one returned by
317 array_sort(&root->refresh.roots, imapc_quota_refresh_root_order_cmp);
349 while (array_count(&root->refresh.roots) > 0) {
351 array_idx(&root->refresh.roots, 0);
354 array_delete(&root->refresh.roots, 0, 1);
416 struct quota_root **roots;
419 roots = array_get_modifiable("a->roots, &count);
421 if (roots[i]->backend.name == quota_backend_imapc.name &&
422 ((roots[i]->ns_prefix == NULL &&
424 roots[i]->ns == ns))
425 imapc_quota_root_namespace_added(roots[i], ns);