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.
22 #define RSS_UNSET (1<<0)
23 #define RSS_RSS (1<<1)
24 #define RSS_ATOM (1<<2)
25 #define RSS_REQUIRE_BUF (1<<3)
27 typedef struct rss_aggregator rss_aggregator;
28 typedef struct rss_item rss_item;
29 typedef struct rss_room_counter rss_room_counter;
31 typedef void (*rss_handler_func)(StrBuf *CData,
37 typedef struct __rss_xml_handler {
39 rss_handler_func Handler;
53 StrBuf *channel_title;
54 StrBuf *author_or_creator;
58 void flush_rss_item(rss_item *ri);
60 struct rss_room_counter {
65 typedef struct __networker_save_message {
66 struct CtdlMessage Msg;
71 StrBuf *author_or_creator;
80 } networker_save_message;
82 struct rss_aggregator {
89 time_t last_error_when;
94 HashList *OtherQRnumbers;
100 struct recptypes recp;
103 networker_save_message *ThisMsg;
108 eNextState RSSAggregator_ParseReply(AsyncIO *IO);
110 eNextState RSS_FetchNetworkUsetableEntry(AsyncIO *IO);