EPG Database

This module is used to hold all EPG information for an adapter. More...

Data Structures

struct  EPGServiceRef_s
 Structure used to identify a service in the EPG database. More...
struct  EPGEvent_s
 Structure used to describe an EPG event. More...
struct  EPGEventRating_s
 Structure describing a rating for an event. More...
struct  EPGEventDetail_s
 Structure describing a detail of an event. More...

Defines

#define EPG_EVENT_DETAIL_TITLE   "title"
 Constant for an events title.
#define EPG_EVENT_DETAIL_DESCRIPTION   "description"
 Constant for an events descripton.

Typedefs

typedef struct EPGServiceRef_s EPGServiceRef_t
typedef struct EPGEvent_s EPGEvent_t
typedef struct EPGEventRating_s EPGEventRating_t
typedef struct EPGEventDetail_s EPGEventDetail_t
typedef void * EPGDBaseEnumerator_t
 Handle to enumerate events.

Functions

int EPGDBaseInit (int adapter)
int EPGDBaseDeInit (void)
int EPGDBaseTransactionStart (void)
int EPGDBaseTransactionCommit (void)
int EPGDBaseEventAdd (EPGEvent_t *event)
int EPGDBaseEventRemove (EPGServiceRef_t *serviceRef, unsigned int eventId)
int EPGDBaseEventCountAll ()
int EPGDBaseEventCountService (EPGServiceRef_t *serviceRef)
EPGDBaseEnumerator_t EPGDBaseEventEnumeratorGetAll ()
EPGDBaseEnumerator_t EPGDBaseEventEnumeratorGetService (EPGServiceRef_t *serviceRef)
EPGEvent_tEPGDBaseEventGetNext (EPGDBaseEnumerator_t enumerator)
int EPGDBaseRatingAdd (EPGServiceRef_t *serviceRef, unsigned int eventId, char *system, char *rating)
int EPGDBaseRatingRemoveAll (EPGServiceRef_t *serviceRef, unsigned int eventId)
int EPGDBaseRatingCount (EPGServiceRef_t *serviceRef, unsigned int eventId)
EPGDBaseEnumerator_t EPGDBaseRatingEnumeratorGet (EPGServiceRef_t *serviceRef, unsigned int eventId)
EPGEventRating_tEPGDBaseRatingGetNext (EPGDBaseEnumerator_t enumerator)
int EPGDBaseDetailAdd (EPGServiceRef_t *serviceRef, unsigned int eventId, char *lang, char *name, char *value)
int EPGDBaseDetailRemoveAll (EPGServiceRef_t *serviceRef, unsigned int eventId)
int EPGDBaseDetailCount (EPGServiceRef_t *serviceRef, unsigned int eventId)
EPGDBaseEnumerator_t EPGDBaseDetailGet (EPGServiceRef_t *serviceRef, unsigned int eventId, char *name)
EPGDBaseEnumerator_t EPGDBaseDetailEnumeratorGet (EPGServiceRef_t *serviceRef, unsigned int eventId)
EPGEventDetail_tEPGDBaseDetailGetNext (EPGDBaseEnumerator_t enumerator)
void EPGDBaseEnumeratorDestroy (EPGDBaseEnumerator_t enumerator)

Detailed Description

This module is used to hold all EPG information for an adapter.


Event information older than 24 hours is removed by a thread that runs every hour.


Function Documentation

int EPGDBaseDeInit ( void   ) 

For internal use only.

Deinitialises the EPG database.

int EPGDBaseInit ( int  adapter  ) 

For internal use only.

Initialises the EPG database for a specific adapter.

Parameters:
adapter The adapter number to initialise the database for.
Returns:
0 on success.


Generated on Thu Jun 26 12:58:31 2008 for DVBStreamer by  doxygen 1.5.5