track c_lastseen so we can use it in read operations
[citadel.git] / webcit-ng / webcit.h
index 8dfcf71164fba0c1d2ed0512374b2fb5ea504edf..a818260d3824a9c23fab689d797f11b35b8c1fc6 100644 (file)
@@ -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,6 +148,7 @@ 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);