X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fwebcit.h;h=de529ae83536dc01184c839245cdb2b91ac6f9c4;hb=5deb2bab5f248ea677c98d8b36b3d658520324ed;hp=1eae0ca10ed37a406818ade9a9a660964564a8b1;hpb=7f7214d4e20d34e813eef0794e55d1a1fe835f93;p=citadel.git diff --git a/webcit-ng/webcit.h b/webcit-ng/webcit.h index 1eae0ca10..de529ae83 100644 --- a/webcit-ng/webcit.h +++ b/webcit-ng/webcit.h @@ -82,6 +82,7 @@ struct ctdlsession { char room[128]; // What room we are currently in int room_current_view; int room_default_view; + long last_seen; int new_messages; int total_messages; time_t last_access; // Timestamp of last request that used this session @@ -147,13 +148,19 @@ void dav_put_message(struct http_transaction *h, struct ctdlsession *c, char *eu ssize_t ctdl_write(struct ctdlsession *ctdl, const void *buf, size_t count); int login_to_citadel(struct ctdlsession *c, char *auth, char *resultbuf); void threaded_view(struct http_transaction *h, struct ctdlsession *c, char *which); +void flat_view(struct http_transaction *h, struct ctdlsession *c, char *which); StrBuf *ctdl_readtextmsg(struct ctdlsession *ctdl); StrBuf *html2html(const char *supplied_charset, int treat_as_wiki, char *roomname, long msgnum, StrBuf *Source); void download_mime_component(struct http_transaction *h, struct ctdlsession *c, long msgnum, char *partnum); StrBuf *text2html(const char *supplied_charset, int treat_as_wiki, char *roomname, long msgnum, StrBuf *Source); StrBuf *variformat2html(StrBuf *Source); - -void *mallok(size_t size); -void phree(void *ptr); -void *reallok(void *ptr, size_t size); - +int ctdl_readline(struct ctdlsession *ctdl, char *buf, int maxbytes); +void ctdl_c(struct http_transaction *h, struct ctdlsession *c); +int webserver(char *webserver_interface, int webserver_port, int webserver_protocol); +void ctdl_printf(struct ctdlsession *ctdl, const char *format,...); +int webcit_tcp_server(const char *ip_addr, int port_number, int queue_len); +void do_502(struct http_transaction *h); +void do_404(struct http_transaction *h); +void do_412(struct http_transaction *h); +void UrlizeText(StrBuf* Target, StrBuf *Source, StrBuf *WrkBuf); +void html_render_one_message(struct http_transaction *h, struct ctdlsession *c, long msgnum);