~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/doveadm/dsync/dsync-proxy.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef DSYNC_PROXY_H
2
 
#define DSYNC_PROXY_H
3
 
 
4
 
#include "dsync-data.h"
5
 
 
6
 
#define DSYNC_PROXY_CLIENT_TIMEOUT_MSECS (14*60*1000)
7
 
#define DSYNC_PROXY_SERVER_TIMEOUT_MSECS (15*60*1000)
8
 
 
9
 
#define DSYNC_PROXY_CLIENT_GREETING_LINE "dsync-client\t2"
10
 
#define DSYNC_PROXY_SERVER_GREETING_LINE "dsync-server\t2"
11
 
 
12
 
struct dsync_message;
13
 
struct dsync_mailbox;
14
 
 
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);
20
 
 
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);
29
 
 
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);
39
 
 
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);
47
 
 
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);
51
 
 
52
 
void dsync_proxy_send_dot_output(struct ostream *output, bool *last_lf,
53
 
                                 const unsigned char *data, size_t size);
54
 
 
55
 
#endif