* change CtdlReadMessageBody to use StrBuf for concattenating the lines
[citadel.git] / citadel / sysdep_decls.h
index e61cc4096026391040f16351959ebb772f9baa42..d0433222356c5e415b5ac88ba67df9c830bdd4ad 100644 (file)
@@ -40,6 +40,8 @@
 #define SIZE_T_FMT "%ld"
 #endif
 
+void cputbuf(const StrBuf *Buf);
+
 #ifdef __GNUC__
 void cprintf (const char *format, ...) __attribute__((__format__(__printf__,1,2)));
 #else
@@ -57,10 +59,12 @@ int ig_uds_server(char *sockpath, int queue_len, char **errormessage);
 void buffer_output(void);
 void unbuffer_output(void);
 void flush_output(void);
-int client_write (char *buf, int nbytes);
+int client_write (const char *buf, int nbytes);
 int client_read_to (char *buf, int bytes, int timeout);
 int client_read (char *buf, int bytes);
 int client_getln (char *buf, int maxbytes);
+int CtdlClientGetLine(StrBuf *Target);
+int client_read_blob(StrBuf *Target, int bytes, int timeout);
 void sysdep_master_cleanup (void);
 void kill_session (int session_to_kill);
 void start_daemon (int do_close_stdio);