about summary refs log tree commit diff
path: root/imap.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-13 16:18:37 -0400
committerJune McEnroe <june@causal.agency>2020-04-13 16:18:37 -0400
commitbab44e23d43b064fa1995975434db88913a1ce20 (patch)
treefcca2b7b8ce4cf3b9444c8f82750d16fe1452ed2 /imap.h
parentAdd -u option to set base URL (diff)
downloadbubger-bab44e23d43b064fa1995975434db88913a1ce20.tar.gz
bubger-bab44e23d43b064fa1995975434db88913a1ce20.zip
Use two FILEs for IMAP
Turns out that funopen cannot be used for a full-duplex socket.
Diffstat (limited to 'imap.h')
-rw-r--r--imap.h4
1 files changed, 2 insertions, 2 deletions
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 */