From bab44e23d43b064fa1995975434db88913a1ce20 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 13 Apr 2020 16:18:37 -0400 Subject: Use two FILEs for IMAP Turns out that funopen cannot be used for a full-duplex socket. --- imap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imap.h') diff --git a/imap.h b/imap.h index a364111..5919b8f 100644 --- a/imap.h +++ b/imap.h @@ -165,7 +165,7 @@ static inline void respFree(struct Resp resp) { } extern bool imapVerbose; -FILE *imapOpen(const char *host, const char *port); -struct Resp imapResp(FILE *imap); +void imapOpen(FILE **read, FILE **write, const char *host, const char *port); +struct Resp imapResp(FILE *imapRead); #endif /* IMAP_H */ -- cgit 1.4.1