X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.h;h=4aac82df13adc3984ea2b00c16c34bbf7ebd91f0;hb=42d25facbd8e3dbaeda448095c5761768195df03;hp=a442b725e810e958937c5bf8cb595609f4382583;hpb=d7122d9b8ae8863ca4412deb95b619585f28eda6;p=citadel.git diff --git a/webcit/webcit.h b/webcit/webcit.h index a442b725e..4aac82df1 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -1,5 +1,9 @@ /* $Id$ */ +#ifdef WITH_ZLIB +#include +#endif + #define SIZ 4096 /* generic buffer size */ #define TRACE fprintf(stderr, "Checkpoint: %s, %d\n", __FILE__, __LINE__) @@ -164,6 +168,10 @@ struct wcsession { char this_page[SIZ]; /* address of current page */ char http_host[SIZ]; /* HTTP Host: header */ char *preferences; +#ifdef WITH_ZLIB + int gzcompressed; /* nonzero if compressed output */ + gzFile gzfd; /* stream to send compressed */ +#endif }; #define extract(dest,source,parmnum) extract_token(dest,source,parmnum,'|') @@ -332,3 +340,4 @@ void rename_floor(void); void do_listsub(void); void toggle_self_service(void); void summary(void); +ssize_t write(int fd, const void *buf, size_t count);