Lines Matching defs:counter
34 node_create(struct dsync_mailbox_tree *tree, unsigned int counter,
40 memcpy(node->mailbox_guid, &counter, sizeof(counter));
41 node->uid_validity = counter;
48 random_node_create(struct dsync_mailbox_tree *tree, unsigned int counter,
51 return node_create(tree, counter, name, i_rand_limit(10));
54 static void nodes_create(struct dsync_mailbox_tree *tree, unsigned int *counter,
58 *counter += 1;
59 node_create(tree, *counter, *names, 0);
63 static void nodes_delete(struct dsync_mailbox_tree *tree, unsigned int *counter,
69 *counter += 1;
70 node = node_create(tree, *counter, *names, 0);
77 unsigned int depth, unsigned int *counter)
91 *counter += 1;
94 random_node_create(tree, *counter, str_c(str));
95 create_random_nodes(tree, str_c(str), depth+1, counter);
102 unsigned int counter = 0;
105 create_random_nodes(tree, "", 0, &counter);
274 unsigned int counter = 0;
278 nodes_create(tree1, &counter, common_nodes);
280 nodes_create(tree1, &counter, create1_nodes);
281 nodes_create(tree2, &counter, create2_nodes);
293 unsigned int counter = 0;
297 nodes_create(tree1, &counter, common_nodes);
299 nodes_delete(tree1, &counter, delete1_nodes);
300 nodes_delete(tree2, &counter, delete2_nodes);
311 unsigned int counter = 0;
315 nodes_create(tree1, &counter, common_nodes);