blob: 161fb3f92714fa8e31d0b3b8a77ec2e83ed45913 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef TEST_MAIL_STORAGE_H
#define TEST_MAIL_STORAGE_H
#include "mail-storage-private.h"
struct test_mail_storage_ctx {
pool_t pool;
struct mail_storage_service_ctx *storage_service;
struct mail_user *user;
struct mail_storage_service_user *service_user;
struct ioloop *ioloop;
const char *home_root;
};
struct test_mail_storage_settings {
const char *username;
const char *driver;
const char *driver_opts;
const char *hierarchy_sep;
const char *const *extra_input;
};
struct test_mail_storage_ctx *test_mail_storage_init(void);
void test_mail_storage_deinit(struct test_mail_storage_ctx **ctx);
void test_mail_storage_init_user(struct test_mail_storage_ctx *ctx,
const struct test_mail_storage_settings *set);
void test_mail_storage_deinit_user(struct test_mail_storage_ctx *ctx);
#endif
|