#ifndef IMAP_URLAUTH_CONNECTION_H
#define IMAP_URLAUTH_CONNECTION_H
struct imap_urlauth_request;
struct imap_urlauth_fetch_reply;
typedef int
void *context);
/* If reconnect_callback is specified, it's called when connection is lost.
If the callback returns FALSE, reconnection isn't attempted. */
struct imap_urlauth_connection *
unsigned int idle_timeout_msecs);
/* Connect to imap-urlauth (even if failed for previous requests). */
/* Continue after request callback returned 0 */
/* Create a new URL fetch request */
struct imap_urlauth_request *
const char *target_user, const char *url,
void *context);
/* Abort request */
struct imap_urlauth_request *urlreq);
/* Abort all requests with matching context value */
void *context);
/* Returns TRUE if currently connected imap-urlauth service. */
#endif