1
#ifndef IMAPC_CLIENT_PRIVATE_H
2
#define IMAPC_CLIENT_PRIVATE_H
4
#include "imapc-client.h"
6
struct imapc_client_connection {
7
struct imapc_connection *conn;
8
struct imapc_client_mailbox *box;
15
struct imapc_client_settings set;
16
struct ssl_iostream_context *ssl_ctx;
18
imapc_untagged_callback_t *untagged_callback;
19
void *untagged_context;
21
ARRAY_DEFINE(conns, struct imapc_client_connection *);
23
struct ioloop *ioloop;
26
struct imapc_client_mailbox {
27
struct imapc_client *client;
28
struct imapc_connection *conn;
29
struct imapc_msgmap *msgmap;
31
void (*reopen_callback)(void *context);
34
void *untagged_box_context;
35
unsigned int pending_box_command_count;
42
void imapc_client_ref(struct imapc_client *client);
43
void imapc_client_unref(struct imapc_client **client);
45
void imapc_command_set_mailbox(struct imapc_command *cmd,
46
struct imapc_client_mailbox *box);