5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainenimap_master_connection_send_callback_t(void *context, struct ostream *output);
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainenimap_master_connection_read_callback_t(void *context, const char *reply);
17062405030a3fa095e43d5b8b71afc5536f0a22Timo Sirainen/* Returns 1 = success, 0 = retry later, -1 = error */
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainenint imap_master_connection_init(const char *path,
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen imap_master_connection_send_callback_t *send_callback,
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8Timo Sirainen imap_master_connection_read_callback_t *read_callback,
17062405030a3fa095e43d5b8b71afc5536f0a22Timo Sirainen const char **error_r);