]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/rssclient/rss_atom_parser.h
Convert CtdlMessages to respect cm_lengths[]
[citadel.git] / citadel / modules / rssclient / rss_atom_parser.h
index 71278c7c24e4d2b7da87b00ae18bb06754336ec2..da4c6161f3f1fa3d79afe73daae2bfedd501a834 100644 (file)
@@ -18,6 +18,7 @@
  * 
  */
 
+#include "internet_addressing.h"
 
 #define RSS_UNSET       (1<<0)
 #define RSS_RSS         (1<<1)
@@ -66,9 +67,31 @@ typedef struct __networker_save_message {
        struct CtdlMessage Msg;
        StrBuf *MsgGUID;
        StrBuf *Message;
-       struct UseTable ut;
+
+       StrBuf *author_email;
+       StrBuf *author_or_creator;
+       StrBuf *title;
+       StrBuf *description;
+
+       StrBuf *link;
+       StrBuf *linkTitle;
+
+       StrBuf *reLink;
+       StrBuf *reLinkTitle;
 } networker_save_message;
 
+typedef struct RSSCfgLine RSSCfgLine;
+struct RSSCfgLine {
+       RSSCfgLine *next;
+       StrBuf *Url;
+       time_t last_known_good;
+};
+
+typedef struct __pRSSConfig {
+       const RSSCfgLine *pCfg;
+       long             QRnumber;
+}pRSSConfig;
+
 struct rss_aggregator {
        AsyncIO          IO;
        XML_Parser       xp;
@@ -80,14 +103,14 @@ struct rss_aggregator {
        time_t           next_poll;
        StrBuf          *Url;
        StrBuf          *rooms;
-       long             QRnumber;
+       pRSSConfig       Cfg;
        HashList        *OtherQRnumbers;
                        
        StrBuf          *CData;
        StrBuf          *Key;
 
        rss_item        *Item;
-       struct recptypes recp;
+       recptypes        recp;
        HashPos         *Pos;
        HashList        *Messages;
        networker_save_message *ThisMsg;