2 * Bring external RSS feeds into rooms.
4 * Copyright (c) 2007-2012 by the citadel.org team
6 * This program is open source software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 3.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
21 #include "internet_addressing.h"
23 #define RSS_UNSET (1<<0)
24 #define RSS_RSS (1<<1)
25 #define RSS_ATOM (1<<2)
26 #define RSS_REQUIRE_BUF (1<<3)
28 typedef struct rss_aggregator rss_aggregator;
29 typedef struct rss_item rss_item;
30 typedef struct rss_room_counter rss_room_counter;
32 typedef void (*rss_handler_func)(StrBuf *CData,
38 typedef struct __rss_xml_handler {
40 rss_handler_func Handler;
54 StrBuf *channel_title;
55 StrBuf *author_or_creator;
59 void flush_rss_item(rss_item *ri);
61 struct rss_room_counter {
66 typedef struct __networker_save_message {
67 struct CtdlMessage Msg;
72 StrBuf *author_or_creator;
81 } networker_save_message;
83 typedef struct RSSCfgLine RSSCfgLine;
87 time_t last_known_good;
90 typedef struct __pRSSConfig {
91 const RSSCfgLine *pCfg;
95 struct rss_aggregator {
102 time_t last_error_when;
107 HashList *OtherQRnumbers;
116 networker_save_message *ThisMsg;
121 eNextState RSSAggregator_ParseReply(AsyncIO *IO);
123 eNextState RSS_FetchNetworkUsetableEntry(AsyncIO *IO);