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\t1"
10
#define DSYNC_PROXY_SERVER_GREETING_LINE "dsync-server\t1"
15
void dsync_proxy_strings_export(string_t *str,
16
const ARRAY_TYPE(const_string) *strings);
18
void dsync_proxy_msg_export(string_t *str, const struct dsync_message *msg);
19
int dsync_proxy_msg_parse_flags(pool_t pool, const char *str,
20
struct dsync_message *msg_r);
21
int dsync_proxy_msg_import_unescaped(pool_t pool, const char *const *args,
22
struct dsync_message *msg_r,
23
const char **error_r);
24
int dsync_proxy_msg_import(pool_t pool, const char *str,
25
struct dsync_message *msg_r, const char **error_r);
27
void dsync_proxy_msg_static_export(string_t *str,
28
const struct dsync_msg_static_data *msg);
29
int dsync_proxy_msg_static_import(pool_t pool, const char *str,
30
struct dsync_msg_static_data *msg_r,
31
const char **error_r);
32
int dsync_proxy_msg_static_import_unescaped(pool_t pool,
33
const char *const *args,
34
struct dsync_msg_static_data *msg_r,
35
const char **error_r);
37
void dsync_proxy_mailbox_export(string_t *str, const struct dsync_mailbox *box);
38
int dsync_proxy_mailbox_import(pool_t pool, const char *str,
39
struct dsync_mailbox *box_r,
40
const char **error_r);
41
int dsync_proxy_mailbox_import_unescaped(pool_t pool, const char *const *args,
42
struct dsync_mailbox *box_r,
43
const char **error_r);
45
void dsync_proxy_mailbox_guid_export(string_t *str,
46
const mailbox_guid_t *mailbox);
47
int dsync_proxy_mailbox_guid_import(const char *str, mailbox_guid_t *guid_r);
49
void dsync_proxy_send_dot_output(struct ostream *output, bool *last_lf,
50
const unsigned char *data, size_t size);