vdr  2.4.0
Classes | Macros | Functions | Variables
epg.c File Reference
#include "epg.h"
#include <ctype.h>
#include <limits.h>
#include <time.h>
#include "libsi/si.h"
Include dependency graph for epg.c:

Go to the source code of this file.

Classes

struct  tEpgBugFixStats
 
class  cEpgDataWriter
 

Macros

#define RUNNINGSTATUSTIMEOUT   30
 
#define EPGDATAWRITEDELTA   600
 
#define MAXEPGBUGFIXSTATS   13
 
#define MAXEPGBUGFIXCHANS   100
 
#define MAX_USEFUL_EPISODE_LENGTH   40
 

Functions

static void EpgBugFixStat (int Number, tChannelID ChannelID)
 
void ReportEpgBugFixStats (bool Force)
 
static void StripControlCharacters (char *s)
 

Variables

tEpgBugFixStats EpgBugFixStats [MAXEPGBUGFIXSTATS]
 
static cEpgDataWriter EpgDataWriter
 
cEpgHandlers EpgHandlers
 

Macro Definition Documentation

◆ EPGDATAWRITEDELTA

#define EPGDATAWRITEDELTA   600

Definition at line 20 of file epg.c.

◆ MAX_USEFUL_EPISODE_LENGTH

#define MAX_USEFUL_EPISODE_LENGTH   40

◆ MAXEPGBUGFIXCHANS

#define MAXEPGBUGFIXCHANS   100

Definition at line 586 of file epg.c.

◆ MAXEPGBUGFIXSTATS

#define MAXEPGBUGFIXSTATS   13

Definition at line 585 of file epg.c.

◆ RUNNINGSTATUSTIMEOUT

#define RUNNINGSTATUSTIMEOUT   30

Definition at line 19 of file epg.c.

Function Documentation

◆ EpgBugFixStat()

static void EpgBugFixStat ( int  Number,
tChannelID  ChannelID 
)
static

◆ ReportEpgBugFixStats()

void ReportEpgBugFixStats ( bool  Force)

Definition at line 611 of file epg.c.

References tEpgBugFixStats::channelIDs, dsyslog, cSetup::EPGBugfixLevel, EpgBugFixStats, tEpgBugFixStats::hits, LOCK_CHANNELS_READ, MAXEPGBUGFIXSTATS, tEpgBugFixStats::n, and Setup.

Referenced by main().

Here is the caller graph for this function:

◆ StripControlCharacters()

static void StripControlCharacters ( char *  s)
static

Definition at line 670 of file epg.c.

References SI::Utf8CharLen().

Referenced by cEvent::FixEpgBugs().

Variable Documentation

◆ EpgBugFixStats

Definition at line 594 of file epg.c.

Referenced by EpgBugFixStat(), and ReportEpgBugFixStats().

◆ EpgDataWriter

cEpgDataWriter EpgDataWriter
static

Definition at line 1218 of file epg.c.

Referenced by cSchedules::Cleanup(), and cSchedules::SetEpgDataFileName().

◆ EpgHandlers

cEpgHandlers EpgHandlers

Definition at line 1384 of file epg.c.

Referenced by cEIT::cEIT(), cEpgHandler::cEpgHandler(), main(), and cEpgHandler::~cEpgHandler().