dsync-mailbox-tree.c revision 7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29
/* Copyright (c) 2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "hash.h"
#include "str.h"
#include "doveadm-settings.h"
#include "mailbox-list-private.h"
#include "dsync-mailbox-tree-private.h"
struct dsync_mailbox_tree_iter {
struct dsync_mailbox_tree *tree;
struct dsync_mailbox_node *cur;
};
{
struct dsync_mailbox_tree *tree;
return tree;
}
{
}
static struct dsync_mailbox_node *
{
return nodes;
}
return NULL;
}
struct dsync_mailbox_node *
const char *full_name)
{
T_BEGIN {
const char *const *path;
} T_END;
return node;
}
struct dsync_mailbox_node *
{
T_BEGIN {
const char *const *path;
/* find the existing part */
break;
}
/* create the rest */
}
} T_END;
return node;
}
static void
{
}
const struct dsync_mailbox_node *node)
{
/* remove the trailing separator */
}
const struct dsync_mailbox_node *src)
{
sizeof(dest->mailbox_guid));
}
struct dsync_mailbox_tree_iter *
{
struct dsync_mailbox_tree_iter *iter;
tree->iter_count++;
return iter;
}
{
else {
}
}
const char **full_name_r,
struct dsync_mailbox_node **node_r)
{
unsigned int len;
else {
return FALSE;
}
}
return TRUE;
}
{
}
{
struct dsync_mailbox_tree_iter *iter;
struct dsync_mailbox_node *node;
const char *name;
}
}
static const char *
{
else
}
}
static void
{
struct dsync_mailbox_tree_iter *iter;
struct dsync_mailbox_node *node;
const char *name;
T_BEGIN {
const char *remote_name =
} T_END;
}
}
struct dsync_mailbox_node *node)
{
struct dsync_mailbox_node *old_node;
return 0;
i_error("Duplicate mailbox GUID %s "
"for mailboxes %s and %s",
return -1;
}
return 0;
}
{
struct dsync_mailbox_tree_iter *iter;
struct dsync_mailbox_node *node;
const char *name;
int ret = 0;
return ret;
}
const struct dsync_mailbox_delete *
unsigned int *count_r)
{
}
struct dsync_mailbox_node *
const struct dsync_mailbox_delete *del)
{
struct hash_table *hash;
if (del->delete_mailbox) {
/* find node by GUID */
}
/* find node by name. this is a bit tricky, since the hierarchy
separator may differ from ours. */
} else {
}
}
char remote_sep)
{
}