4
#include "dsync-data.h"
6
#define DSYNC_PROXY_CLIENT_TIMEOUT_MSECS (14*60*1000)
7
#define DSYNC_PROXY_SERVER_TIMEOUT_MSECS (15*60*1000)
9
#define DSYNC_PROXY_CLIENT_GREETING_LINE "dsync-client\t2"
10
#define DSYNC_PROXY_SERVER_GREETING_LINE "dsync-server\t2"
15
void dsync_proxy_cache_fields_export(string_t *str,
16
const ARRAY_TYPE(mailbox_cache_field) *fields);
17
int dsync_proxy_cache_fields_import(const char *const *args, pool_t pool,
18
ARRAY_TYPE(mailbox_cache_field) *fields,
19
const char **error_r);
21
void dsync_proxy_msg_export(string_t *str, const struct dsync_message *msg);
22
int dsync_proxy_msg_parse_flags(pool_t pool, const char *str,
23
struct dsync_message *msg_r);
24
int dsync_proxy_msg_import_unescaped(pool_t pool, const char *const *args,
25
struct dsync_message *msg_r,
26
const char **error_r);
27
int dsync_proxy_msg_import(pool_t pool, const char *str,
28
struct dsync_message *msg_r, const char **error_r);
30
void dsync_proxy_msg_static_export(string_t *str,
31
const struct dsync_msg_static_data *msg);
32
int dsync_proxy_msg_static_import(pool_t pool, const char *str,
33
struct dsync_msg_static_data *msg_r,
34
const char **error_r);
35
int dsync_proxy_msg_static_import_unescaped(pool_t pool,
36
const char *const *args,
37
struct dsync_msg_static_data *msg_r,
38
const char **error_r);
40
void dsync_proxy_mailbox_export(string_t *str, const struct dsync_mailbox *box);
41
int dsync_proxy_mailbox_import(pool_t pool, const char *str,
42
struct dsync_mailbox *box_r,
43
const char **error_r);
44
int dsync_proxy_mailbox_import_unescaped(pool_t pool, const char *const *args,
45
struct dsync_mailbox *box_r,
46
const char **error_r);
48
void dsync_proxy_mailbox_guid_export(string_t *str,
49
const mailbox_guid_t *mailbox);
50
int dsync_proxy_mailbox_guid_import(const char *str, mailbox_guid_t *guid_r);
52
void dsync_proxy_send_dot_output(struct ostream *output, bool *last_lf,
53
const unsigned char *data, size_t size);