imap-urlauth-fetch.h revision 620b60321d04006b32a116824d49b88b61be7131
#ifndef IMAP_URLAUTH_FETCH_H
#define IMAP_URLAUTH_FETCH_H
struct imap_urlauth_context;
struct imap_urlauth_fetch;
enum imap_urlauth_fetch_flags {
/* Indicates that this is an extended request */
IMAP_URLAUTH_FETCH_FLAG_EXTENDED = 0x01,
/* Fetch body part unmodified */
IMAP_URLAUTH_FETCH_FLAG_BODY = 0x02,
/* Fetch body part as binary, i.e. without content encoding */
IMAP_URLAUTH_FETCH_FLAG_BINARY = 0x04,
/* Fetch IMAP bodypartstructure */
};
struct imap_urlauth_fetch_reply {
const char *url;
const char *bodypartstruct;
const char *error;
unsigned int succeeded:1;
unsigned int binary_has_nuls:1;
};
/* Callback to handle fetch reply. Returns 1 if handled completely and ready
for next reply, 0 if not all data was processed, and -1 for error. If a
callback returns 0, imap_urlauth_fetch_continue() must be called once
new replies may be processed. If this is the last request to yield a reply,
argument last is TRUE. */
typedef int
struct imap_urlauth_fetch *
#endif