X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fwebcit.h;h=af08f6fddb2c3d307c1c76fe1705f748f564347a;hb=35406dcce3e45f6a52012ded8bb9fa5e99f484d9;hp=8dfcf71164fba0c1d2ed0512374b2fb5ea504edf;hpb=52b6f96d74b3faf7e25f87618493c1ffd8cc3571;p=citadel.git diff --git a/webcit-ng/webcit.h b/webcit-ng/webcit.h index 8dfcf7116..af08f6fdd 100644 --- a/webcit-ng/webcit.h +++ b/webcit-ng/webcit.h @@ -7,6 +7,8 @@ * modify it under the terms of the GNU General Public License, version 3. */ +#define SHOW_ME_VAPPEND_PRINTF + #include #include #include @@ -22,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -82,6 +85,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 @@ -131,6 +135,7 @@ int uds_connectsock(char *sockpath); int tcp_connectsock(char *host, char *service); void ctdl_a(struct http_transaction *, struct ctdlsession *); void ctdl_r(struct http_transaction *, struct ctdlsession *); +void ctdl_u(struct http_transaction *, struct ctdlsession *); struct ctdlsession *connect_to_citadel(struct http_transaction *); void disconnect_from_citadel(struct ctdlsession *); char *header_val(struct http_transaction *h, char *requested_header); @@ -146,7 +151,6 @@ void dav_get_message(struct http_transaction *h, struct ctdlsession *c, long msg void dav_put_message(struct http_transaction *h, struct ctdlsession *c, char *euid, long old_msgnum); 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); 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); @@ -161,3 +165,4 @@ 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 json_render_one_message(struct http_transaction *h, struct ctdlsession *c, long msgnum);