diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/imap-hibernate/imap-master-connection.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/imap-hibernate/imap-master-connection.h')
-rw-r--r-- | src/imap-hibernate/imap-master-connection.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/imap-hibernate/imap-master-connection.h b/src/imap-hibernate/imap-master-connection.h new file mode 100644 index 0000000..0ff2f3c --- /dev/null +++ b/src/imap-hibernate/imap-master-connection.h @@ -0,0 +1,24 @@ +#ifndef IMAP_MASTER_CONNECTION_H +#define IMAP_MASTER_CONNECTION_H + +struct imap_master_connection; + +typedef void +imap_master_connection_send_callback_t(void *context, struct ostream *output); +typedef void +imap_master_connection_read_callback_t(void *context, const char *reply); + +/* Returns 1 = success, 0 = retry later, -1 = error */ +int imap_master_connection_init(const char *path, + imap_master_connection_send_callback_t *send_callback, + imap_master_connection_read_callback_t *read_callback, + void *context, + struct imap_master_connection **conn_r, + const char **error_r); +void imap_master_connection_deinit(struct imap_master_connection **conn); +void imap_master_connection_free(struct imap_master_connection **conn); + +void imap_master_connections_init(void); +void imap_master_connections_deinit(void); + +#endif |