citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
serv_rssclient.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <time.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <expat.h>
#include <curl/curl.h>
#include <libcitadel.h>
#include "../../citadel.h"
#include "../../server.h"
#include "../../citserver.h"
#include "../../support.h"
#include "../../config.h"
#include "../../threads.h"
#include "../../ctdl_module.h"
#include "../../msgbase.h"
#include "../../parsedate.h"
#include "../../database.h"
#include "../../citadel_dirs.h"
#include "../../context.h"
#include "../../internet_addressing.h"
Include dependency graph for serv_rssclient.c:

Go to the source code of this file.

Data Structures

struct  rssroom
 
struct  rssurl
 
struct  rssparser
 

Functions

void rss_start_element (void *data, const char *el, const char **attribute)
 
void rss_end_element (void *data, const char *el)
 
void rss_handle_data (void *data, const char *content, int length)
 
void rss_parse_feed (StrBuf *Feed, struct rssroom *rooms)
 
void rssclient_push_todo (char *rssurl, char *roomname)
 
void rss_pull_one_feed (struct rssurl *url)
 
void rss_pull_feeds (void)
 
void rssclient_scan_room (struct ctdlroom *qrbuf, void *data)
 
void rssclient_scan (void)
 
char * ctdl_module_init_rssclient (void)
 

Variables

time_t last_run = 0L
 
struct rssurlrsstodo = NULL
 

Function Documentation

◆ ctdl_module_init_rssclient()

char * ctdl_module_init_rssclient ( void  )

Definition at line 455 of file serv_rssclient.c.

References CtdlRegisterSessionHook(), EVT_TIMER, PRIO_AGGR, rssclient_scan(), and threading.

Referenced by initialize_modules().

◆ rss_end_element()

◆ rss_handle_data()

void rss_handle_data ( void *  data,
const char *  content,
int  length 
)

Definition at line 278 of file serv_rssclient.c.

References rssparser::CData.

Referenced by rss_parse_feed().

◆ rss_parse_feed()

void rss_parse_feed ( StrBuf *  Feed,
struct rssroom rooms 
)

◆ rss_pull_feeds()

void rss_pull_feeds ( void  )

◆ rss_pull_one_feed()

void rss_pull_one_feed ( struct rssurl url)

Definition at line 340 of file serv_rssclient.c.

References rssurl::rooms, rss_parse_feed(), and rssurl::url.

Referenced by rss_pull_feeds().

◆ rss_start_element()

void rss_start_element ( void *  data,
const char *  el,
const char **  attribute 
)

◆ rssclient_push_todo()

void rssclient_push_todo ( char *  rssurl,
char *  roomname 
)

◆ rssclient_scan()

void rssclient_scan ( void  )

◆ rssclient_scan_room()

void rssclient_scan_room ( struct ctdlroom qrbuf,
void *  data 
)

Variable Documentation

◆ last_run

time_t last_run = 0L

Definition at line 63 of file serv_rssclient.c.

Referenced by listdeliver_sweep(), pop3client_scan(), and rssclient_scan().

◆ rsstodo

struct rssurl* rsstodo = NULL

Definition at line 64 of file serv_rssclient.c.

Referenced by rss_pull_feeds(), and rssclient_push_todo().